Skip to content

IDispatcher interface

UI-thread dispatcher used to schedule work items and timers. Platform hosts typically create one dispatcher per window handle.

public interface IDispatcher
name description
IsOnUIThread { get; } Gets whether the caller is currently running on the UI thread.
BeginInvoke(…) Asynchronously executes an action on the UI thread at the default priority. (2 methods)
Invoke(…) Executes an action synchronously on the UI thread. If called from the UI thread, the action runs immediately. If called from another thread, blocks until the action completes.