public async Task StopAsync(CancellationToken token = default) { await _cli.StopAsync(token).ConfigureAwait(false); await WaitForShutdownAsync(token).ConfigureAwait(false); }
public void Quit(ICommandLineInterface cli) { // Do not await it because the app will wait // until the command execution is over. cli.StopAsync(); }