TaskUtils MembersNFX Class Library

[This is preliminary documentation and is subject to change.]

The TaskUtils type exposes the following members.
Methods

  NameDescription
Public methodStatic memberAsCompletedTask(Action)
Public methodStatic memberAsCompletedTask T (Func T )
Returns task completed from a synchronous functor
Public methodStatic memberAssignWorkSegment
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
Public methodStatic memberOnError
Registers action executed if task was faulted or cancelled
Public methodStatic memberOnOk(Task, Action, TaskContinuationOptions)
Chains task 'first' with 'next' if first is completed, not cancelled and not faulted. Returns task that completes when 'next' completes
Public methodStatic memberOnOk 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
Public methodStatic memberOnOk 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
Public methodStatic memberOnOk 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
Public methodStatic memberOnOk 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
Public methodStatic memberOnOkOrError(Task, Action Task )
Registers action executed disregarding task state
Public methodStatic memberOnOkOrError T (Task T , Action Task )
Registers action executed disregarding task state
Back to Top
See Also