IUiDispatcher interface

Namespace Runic.Platform · Runic.Platform 0.7.0-preview.5

public interface IUiDispatcher

Dispatches synchronous actions on the presentation's UI thread.

Methods

CheckAccess

bool CheckAccess()

Whether the caller is on the UI thread.

InvokeAsync

ValueTask InvokeAsync(Action action, CancellationToken cancellationToken = default)

Runs an action once while the presentation remains valid.