package haxe.coro

..
cancellation
context
continuations
dispatchers
schedulers
AsyncIterable

An AsyncIterable is a data structure which has an iterator() method returning an AsyncIterator. This allows asynchronous data sources to be used in for loops within coroutine contexts.

AsyncIterator

An AsyncIterator is like Iterator, but hasNext() is a coroutine. This allows iterating over asynchronous data sources such as channels or network streams using for loops in coroutine contexts.

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.

CoroStackItem

Internal coroutine stack frame item, translated to haxe.CallStack.StackItem by haxe.coro.context.ExceptionHandler.

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.

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.

Mutex

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

Tls

Thread-local storage. On target.threaded targets, each thread has its own value. On single-threaded targets this is a plain field.