Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given action.
Namespace: UnityThreadingAssembly: 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.