CoreTaskExtensionsSelect Method (Task, ActionTask) |
Namespace: Rackspace.Threading
Exception | Condition |
---|---|
ArgumentNullException |
If task is . -or- If continuationAction is . |
This code implements support for the following construct without requiring the use of /.
await task.ConfigureAwait(false); continuationAction(task);
If the antecedent task is canceled or faulted, the status of the antecedent is directly applied to the task returned by this method; it is not wrapped in an additional AggregateException.
Notes to Callers |
---|
Since the continuation is executed synchronously, this method should only be used for lightweight continuation actions. For non-trivial continuation actions, use a Task for the continuation operation and call Then(Task, FuncTask, Task) instead. |