Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given action. This method will wait for the task completion.

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

Syntax

C#
public void DispatchAndWait(
	Action action
)
Visual Basic
Public Sub DispatchAndWait ( _
	action As Action _
)
Visual C++
public:
void DispatchAndWait(
	Action^ action
)

Parameters

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

See Also