public interface IRunicModelPresentationYield Optionally implemented by an IRunicModelContext whose presentation renders after a turn, such as a UI dispatcher context. Before a navigator runs the arrival hooks (INavigationArrived) of a commit, it awaits IRunicModelPresentationYield.YieldToPresentationAsync, so the entry is presented, for example with its loading state, before the hook's synchronous part runs.
Remarks
Runic.Navigation.Wpf's DispatcherModelContext implements it. A decorator that wraps such a context must implement and forward this interface too; otherwise arrival hooks may run before the first render.
Methods
YieldToPresentationAsync
ValueTask YieldToPresentationAsync(CancellationToken cancellationToken) Completes once the changes made in earlier turns have been presented (laid out and rendered).
Parameters
cancellationTokenCancelled when the navigator closes.