coroinject

coroinject coroName cmd ?arg ...?

Puts a command in a suspended coroutine. At the next resume the command runs in the coroutine, with two more arguments: the name of the command that suspended it (yield or yieldto) and the value of the resume. Its result is the result of that yield or yieldto. A command put in later runs first, and its result is the value of the next one.

Examples

Errors

Facts