package lua

import lua.Coroutine

Available on lua

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


inline read only Dead:CoroutineState = "dead"

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

inline read only Normal:CoroutineState = "normal"

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

inline read only Running:CoroutineState = "running"

If the coroutine is running.

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–2016 Haxe Foundation
Licensed under a MIT license.