Dispatches the given task to the target Dispatcher (default: the main Dispatcher). 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(
	Task taskBase
)
Visual Basic
Public Sub DispatchAndWait ( _
	taskBase As Task _
)
Visual C++
public:
void DispatchAndWait(
	Task^ taskBase
)

Parameters

taskBase
Type: UnityThreading..::..Task
The task to process at the dispatchers thread.

See Also