https://learn.microsoft.com/en-us/uwp/api/windows.ui.core.coredispatcher.tryrunasync?view=winrt-22621
CoreDispatcher.TryRunAsync(CoreDispatcherPriority, DispatchedHandler) Method (Windows.UI.Core) -...
Attempts to schedule the specified callback on the UI thread from a worker thread, and returns the results asynchronously.
methodwindowsuicore