- Tests a coroutine and returns a string representing its status.
- The coroutine to test.
A coroutine is a special kind of function that can yield control back to the caller without completely exiting. The caller can then resume the coroutine as many times as needed until the function exits.
costatus() function takes a coroutine object and returns its status as a string value, either
'running' 'suspended' or
'dead'. You can use this to test whether the most recent call to
coresume() yielded or terminated.
cocreate() for an example.