A enumerator that describes the output of Coroutine.status().

Variables

@:value(cast "dead")@:impl@:enuminlineread onlyDead:CoroutineState = "dead"

If the coroutine has finished its body function or if it has stopped with an error.

@:value(cast "normal")@:impl@:enuminlineread onlyNormal:CoroutineState = "normal"

If the coroutine is active but not running. That is, it has resumed another coroutine.

@:value(cast "running")@:impl@:enuminlineread onlyRunning:CoroutineState = "running"

If the coroutine is running.

@:value(cast "suspended")@:impl@:enuminlineread onlySuspended:CoroutineState = "suspended"

If the coroutine is suspended in a call to yield, or if it has not started running yet.