Class TaskHelper
Provides helper methods for dealing with tasks.
public static class TaskHelper
- Inheritance
-
TaskHelper
- Inherited Members
Methods
IsMainThread()
Gets a value indicating whether the current thread is the main thread.
public static bool IsMainThread()
Returns
SwitchToMainThread()
Returns a task which, when awaited, will switch the continuation to the main thread.
public static SyncToMainThreadTask SwitchToMainThread()
Returns
- SyncToMainThreadTask
A task which moves the continuation to the main thread.