Dispatches the given task to the target Dispatcher (default: the main Dispatcher).
This method will wait for the task completion or the timeout.
Namespace: UnityThreadingAssembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public void DispatchAndWait( Task taskBase, float timeOutSeconds ) |
| Visual Basic |
|---|
Public Sub DispatchAndWait ( _ taskBase As Task, _ timeOutSeconds As Single _ ) |
| Visual C++ |
|---|
public: void DispatchAndWait( Task^ taskBase, float timeOutSeconds ) |
Parameters
- taskBase
- Type: UnityThreading..::..Task
The task to process at the dispatchers thread.
- timeOutSeconds
- Type: System..::..Single
Time in seconds after the waiting process will stop.