Available on all platforms
SuspensionResult is the return type of coroutine calls.
SuspensionResult
@:value(new SuspensionResult(Pending))staticfinalread onlysuspended:SuspensionResult<Any> = new SuspensionResult(Pending)
new(state:SuspensionState)
Creates a new instance with the given state.
state
error:Exception
The error value of the coroutine, is any.
result:T
The result value of the coroutine, if any.
state:SuspensionState
The current state of the suspension.
toString():String