View source
class SuspensionResult<T>
package haxe.coro
extended by BaseContinuation
Available on all platforms
SuspensionResult is the return type of coroutine calls.
Static variables
Static methods
staticwithError<T>(error:Exception):SuspensionResult<Any>
Creates a new SuspensionResult instance with error error.
staticwithResult<T>(result:T):SuspensionResult<T>
Creates a new SuspensionResult instance with result result.
Constructor
Variables
Methods
resolveTo(cont:IContinuation<T>):Void
If this result is Returned or Thrown, resumes cont with the corresponding
result or error. If this result is Pending, this is a no-op.