package haxe.coro.cancellation
| .. | |
|---|---|
| CancellationToken | |
| ICancellationCallback | |
| ICancellationHandle | Handle to a callback which has been registered with a cancellation token. |
| ICancellationToken | A cancellation token enables cooperative cancellation between units of work (threads, coroutines, etc). The token cannot be used to initiate cancellation, only to poll for a cancellation request or register a callback for when cancellation is requested. Cancellation is cooperative which means it is up to the caller to respond to a cancellation request in a manner it deems best. Access to this interface is thread safe. |