Skip to content

cf_destroy_coroutine

Category: coroutine
GitHub: cute_coroutine.h


Destroys a coroutine created by cf_make_coroutine.

void cf_destroy_coroutine(CF_Coroutine co);
Parameters Description
co The coroutine.

Remarks

All objects on the coroutine's stack will get automatically cleaned up.

CF_Coroutine
CF_CoroutineFn
CF_CoroutineState
cf_make_coroutine
cf_coroutine_currently_running
cf_coroutine_state_to_string
cf_coroutine_resume
cf_coroutine_yield
cf_coroutine_state
cf_coroutine_get_udata
cf_coroutine_push
cf_coroutine_pop
cf_coroutine_bytes_pushed
cf_coroutine_space_remaining