| Interface | Description |
|---|---|
| Continuation<TTaskResult,TContinuationResult> |
A function to be called after a task completes.
|
| Task.UnobservedExceptionHandler |
Interface for handlers invoked when a failed
Task is about to be
finalized, but the exception has not been consumed. |
| Class | Description |
|---|---|
| CancellationToken |
Propagates notification that operations should be canceled.
|
| CancellationTokenRegistration |
Represents a callback delegate that has been registered with a
CancellationToken. |
| CancellationTokenSource |
Signals to a
CancellationToken that it should be canceled. |
| Capture<T> |
Provides a class that can be used for capturing variables in an anonymous class implementation.
|
| Task<TResult> |
Represents the result of an asynchronous operation.
|
| TaskCompletionSource<TResult> |
Allows safe orchestration of a task's completion, preventing the consumer from prematurely
completing the task.
|
| Exception | Description |
|---|---|
| AggregateException |
Aggregates multiple
Throwables that may be thrown in the process of a task's execution. |
| ExecutorException |
This is a wrapper class for emphasizing that task failed due to bad
Executor, rather than
the continuation block it self. |
| UnobservedTaskException |
Used to signify that a Task's error went unobserved.
|