Coroutine.status
From ComputerCraft Wiki
Function coroutine.status | |
Returns the status of coro. This is one of “running”, if the coroutine is running; “suspended”, if the coroutine has not yet been started or it called coroutine.yield and has not yet been resumed; “normal”, if the coroutine called coroutine.resume and that call has not yet returned (equivalently, if coro is an ancestor of the currently executing coroutine); or “dead”, if its function returned. | |
Syntax | coroutine.status(coroutine coro) |
Returns | string status |
Part of | ComputerCraft |
API | Coroutine |
Examples
Please see Coroutine (API) for a worked example of using all the coroutine functions.