public Task StopAsync(CancellationToken cancellationToken) { return(_depot.Stop(cancellationToken)); }
public static async Task Stop(this IBusDepot depot, TimeSpan timeout) { using var cancellationTokenSource = new CancellationTokenSource(timeout); await depot.Stop(cancellationTokenSource.Token).ConfigureAwait(false); }