Click or drag to resize
DigitalRuneParallel.Start Method (Action, Action)
Creates and starts a task to execute the given work.

Namespace: DigitalRune.Threading
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public static Task Start(
	Action action,
	Action completionCallback
)

Parameters

action
Type: System.Action
The work to execute in parallel.
completionCallback
Type: System.Action
A method which will be called in RunCallbacks() once this task has completed.

Return Value

Type: Task
A task which represents the asynchronous operation.
Exceptions
ExceptionCondition
ArgumentNullExceptionaction is null.
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