chickadee » cooperative » make-coroutine

make-coroutine proc #!rest argsprocedure

Returns a new coroutine. The resulting procedure is a thunk (it takes no arguments). When the coroutine is called, it is equivalent to applying args to proc, except that any calls to yield! will return control to the calling procedure. When the coroutine is called again after yield!, it will continue where it left off before yielding An error is signalled if the coroutine is called after it completes without calling yield!.