ShowAsync(IAnsiConsole, CancellationToken) Method
Shows the prompt asynchronously.
public Task<T> ShowAsync(IAnsiConsole console, CancellationToken cancellationToken)
- Namespace
- Spectre
.Console - Containing Type
- SelectionPrompt
<T>
Parameters
- IAnsiConsole console
- The console.
- CancellationToken cancellationToken
- The token to monitor for cancellation requests.
Returns
-
Task
<T>