package haxe.coro

..
cancellation
context
schedulers
BaseContinuation

This class serves as the base class for all continuation classes generated by the compiler. It provides the basic functionality for managing the internal coroutine state, most of which should be uninteresting to the casual coroutine user.

Coroutine

Coroutine is the type of functions that are coroutines, which the compiler treats in a special way. The type parameter T represents the signature of the function itself.

ICancellableContinuation

Cancellable continuations are continuations which supports asynchronous cancellation. Like standard continuations they can be explicitly resumed by the user, but unlike standard continuations they will be automatically resumed with a haxe.exceptions.CancellationException when cancelled.

IContinuation

This interface represents an object which can be resumed via its resume function.

IStackFrame

This interface is internally used to manage coroutine call stacks. Only meaningful in -debug mode.

ImmediateSuspensionResult

Represents a suspension result which immediately has either a result or an error value.

Mutex

StackTraceManager

StubMutex

This is a stub version. Creates a mutex, which can be used to acquire a temporary lock to access some resource. The main difference with a lock is that a mutex must always be released by the owner thread.

SuspensionResult

SuspensionResult is the return type of coroutine calls.

SuspensionState

The state of a coroutine.

SuspensionStateTools