-api-id | -api-type |
---|---|
M:Windows.UI.Core.CoreDispatcher.TryRunAsync(Windows.UI.Core.CoreDispatcherPriority,Windows.UI.Core.DispatchedHandler) |
winrt method |
Attempts to schedule the specified callback on the UI thread from a worker thread, and returns the results asynchronously.
Specifies the priority for event dispatch. Set this to CoreDispatcherPriority.Normal.
The callback on which the dispatcher returns when the event is dispatched.
The asynchronous operation.
If called while the CoreDispatcher is shutting down, this method will complete successfully and return false.