W3cubDocs

/Haxe Lua

CoroutineState(String)

package lua

import lua.Coroutine

Available on lua

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

Variables

@:value(cast "dead") @:enum @:impl inline read only Dead:CoroutineState = "dead"

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

@:value(cast "normal") @:enum @:impl inline read only Normal:CoroutineState = "normal"

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

@:value(cast "running") @:enum @:impl inline read only Running:CoroutineState = "running"

If the coroutine is running.

@:value(cast "suspended") @:enum @:impl inline read only Suspended:CoroutineState = "suspended"

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

Static variables

@:value(cast "dead") @:enum @:impl static inline read only Dead:CoroutineState = "dead"

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

@:value(cast "normal") @:enum @:impl static inline read only Normal:CoroutineState = "normal"

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

@:value(cast "running") @:enum @:impl static inline read only Running:CoroutineState = "running"

If the coroutine is running.

@:value(cast "suspended") @:enum @:impl static inline read only Suspended:CoroutineState = "suspended"

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

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