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