| ParallelStart Method (Action, WorkOptions, Action) |
Creates and starts a task to execute the given work.
Namespace: DigitalRune.ThreadingAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax public static Task Start(
Action action,
WorkOptions options,
Action completionCallback
)
Public Shared Function Start (
action As Action,
options As WorkOptions,
completionCallback As Action
) As Task
public:
static Task Start(
Action^ action,
WorkOptions options,
Action^ completionCallback
)
static member Start :
action : Action *
options : WorkOptions *
completionCallback : Action -> Task
Parameters
- action
- Type: SystemAction
The work to execute in parallel. - options
- Type: DigitalRune.ThreadingWorkOptions
The work options to use with this action. - completionCallback
- Type: SystemAction
A method which will be called in RunCallbacks once this task has completed.
Return Value
Type:
TaskA task which represents the asynchronous operation.
Exceptions Remarks Important: The completion callback is not executed automatically. Instead,
the callback is only executed when
RunCallbacks is called. See
RunCallbacks for additional information.
See Also