NavigationResultRequest<TContent, TResult> class

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

public sealed class NavigationResultRequest<TContent, TResult> where TContent : class

A push that waits for a typed result from the pushed entry.

Type parameters

TContent

The region's content type.

TResult

The result type.

Remarks

NavigationResultRequest.Completion ends Completed only through NavigationEntryContext.CompleteAsync on the result entry, and Dismissed on every other path. Both tasks complete asynchronously and are never completed inside a commit turn.

Properties

Completion

public Task<NavigationCompletion<TResult>> Completion { get; }

Gets the request's completion: the entry's result, or a dismissal.

Transition

public ValueTask<NavigationResult<TContent>> Transition { get; }

Gets the outcome of the push. Unlike most value tasks, it can be awaited more than once.