structured_async library
Structured asynchronous programming support for Dart.
Classes
-
CancellableFuture<
T> - A Future that may be cancelled.
Mixins
- CancellableContext
- Context within which a CancellableFuture runs.
Functions
-
currentCancellableContext(
) → CancellableContext? - Get the nearest CancellableContext if this computation is running within a CancellableFuture, otherwise, return null.
Exceptions / Errors
- FutureCancelled
- An Exception thrown when an asynchronous computation is attempted after a CancellableFuture has been cancelled or completed.