DelayedTaskWhenAnyTResult Method (TaskTResult) |
Namespace: Rackspace.Threading
Exception | Condition |
---|---|
ArgumentNullException |
If tasks is . |
ArgumentException |
If tasks contains any values. -or- If tasks was empty. |
The returned task will complete when any of the supplied tasks has completed. The returned task will always end in the RanToCompletion state with its Result set to the first task to complete. This is true even if the first task to complete ended in the Canceled or Faulted state.