[This is preliminary documentation and is subject to change.]
The TaskUtils type exposes the following members.Methods
Name | Description | |
---|---|---|
![]() ![]() | AsCompletedTask(Action) |
Non-generic version of AsCompletedTask T (Func T ) |
![]() ![]() | AsCompletedTask T (Func T ) |
Returns task completed from a synchronous functor
|
![]() ![]() | AssignWorkSegment |
Returns the count of items in work segment along with the start index of the first item to be processed
by a particular worker in the worker set
|
![]() ![]() | OnError |
Registers action executed if task was faulted or cancelled
|
![]() ![]() | OnOk(Task, Action, TaskContinuationOptions) |
Chains task 'first' with 'next' if first is completed, not cancelled and not faulted.
Returns task that completes when 'next' completes
|
![]() ![]() | OnOk T1 (Task T1 , Action T1 , TaskContinuationOptions) |
Chains task 'first' with 'next' passing result of 'first' to 'next' if first is completed, not cancelled and not faulted.
Returns task that completes when 'next' completes
|
![]() ![]() | OnOk T1 (Task, Func Task T1 , TaskContinuationOptions, TaskContinuationOptions) |
Chains task 'first' with task returned by 'next' if first is completed, not cancelled and not faulted.
Returns task that completes after task returned by 'next' completes with result from 'next' task
|
![]() ![]() | OnOk T1 (Task T1 , Func T1, Task , TaskContinuationOptions, TaskContinuationOptions) |
Chains task 'first' with task returned by 'next' passing result of 'first' to 'next' if first is completed, not cancelled and not faulted.
Returns task that completes after task returned by 'next' completes
|
![]() ![]() | OnOk T1, T2 (Task T1 , Func T1, Task T2 , TaskContinuationOptions, TaskContinuationOptions) |
Chains task 'first' with task returned by 'next' passing result of 'first' to 'next' if first is completed, not cancelled and not faulted.
Returns task that completes after task returned by 'next' completes with result from 'next' task
|
![]() ![]() | OnOkOrError(Task, Action Task ) |
Registers action executed disregarding task state
|
![]() ![]() | OnOkOrError T (Task T , Action Task ) |
Registers action executed disregarding task state
|
See Also