Creates a new Task based upon the given action.

Namespace: UnityThreading
Assembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public Task Dispatch(
	Action action
)
Visual Basic
Public Function Dispatch ( _
	action As Action _
) As Task
Visual C++
public:
Task^ Dispatch(
	Action^ action
)

Parameters

action
Type: System..::..Action
The action to process at the dispatchers thread.

Return Value

The new task.

See Also