Available on all platforms
The state of a coroutine.
@:value(cast 0)@:impl@:enuminlineread onlyPending:SuspensionState = 0
The coroutine is still running.
@:value(cast 1)@:impl@:enuminlineread onlyReturned:SuspensionState = 1
The coroutine has returned a value.
@:value(cast 2)@:impl@:enuminlineread onlyThrown:SuspensionState = 2
The coroutine has thrown an exception.