W3cubDocs

/Haxe Lua

CoroutineState(String)

package lua

import lua.Coroutine

Available on lua

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

Variables

inlineread onlyDead:CoroutineState = "dead"

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

inlineread onlyNormal:CoroutineState = "normal"

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

inlineread onlyRunning:CoroutineState = "running"

If the coroutine is running.

inlineread onlySuspended:CoroutineState = "suspended"

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

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/lua/CoroutineState.html