Externs for native Lua coroutines.
Starts or continues the execution of coroutine.
The first time you resume a coroutine, it starts running its body.
args are passed as the arguments to the body function.
If the coroutine has yielded,
resume restarts it;
args are passed as the results from the yield.
If the coroutine runs without any errors,
true plus any
values passed to
yield (if the coroutine yields) or any values returned
by the body function (if the coroutine terminates). If there is any error,
false plus the error message.
Returns the running coroutine plus a boolean, true when the running coroutine is the main one.
Creates a new coroutine, with body
Returns a function that resumes the coroutine each time it is called.
Any arguments passed to the function behave as the extra arguments to
Returns the same values returned by
resume, except the first boolean.
In case of error, propagates the error.