Queues the specified work to run on the main thread and returns a object that represents that work. The work to execute asynchronously A task that represents the work queued to execute in the pool.
(Action action)
| 127 | /// <param name="action">The work to execute asynchronously</param> |
| 128 | /// <returns>A task that represents the work queued to execute in the pool.</returns> |
| 129 | public static Task RunOnUpdate(Action action) |
| 130 | { |
| 131 | return Task.Factory.StartNew(action, CancellationToken.None, TaskCreationOptions.None, MainThreadTaskScheduler); |
| 132 | } |
| 133 | |
| 134 | private static void OnUnhandledException(object sender, UnhandledExceptionEventArgs e) |
| 135 | { |
no test coverage detected