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

Variables

@:value(cast "dead")@:enum@:implinlineread onlyDead:CoroutineState = "dead"

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

@:value(cast "normal")@:enum@:implinlineread onlyNormal:CoroutineState = "normal"

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

@:value(cast "running")@:enum@:implinlineread onlyRunning:CoroutineState = "running"

If the coroutine is running.

@:value(cast "suspended")@:enum@:implinlineread onlySuspended:CoroutineState = "suspended"

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