[Refactor] Remove some unnecessary async/await (#2739)
* Remove some unnecessary async/await * More not-so-async stuff * More not-so-async stuff * Fix merge issue
This commit is contained in:
@@ -177,14 +177,11 @@ namespace Discord
|
||||
await _logger.InfoAsync("Disconnected").ConfigureAwait(false);
|
||||
}
|
||||
|
||||
public async Task CompleteAsync()
|
||||
{
|
||||
await _readyPromise.TrySetResultAsync(true).ConfigureAwait(false);
|
||||
}
|
||||
public async Task WaitAsync()
|
||||
{
|
||||
await _readyPromise.Task.ConfigureAwait(false);
|
||||
}
|
||||
public Task CompleteAsync()
|
||||
=> _readyPromise.TrySetResultAsync(true);
|
||||
|
||||
public Task WaitAsync()
|
||||
=> _readyPromise.Task;
|
||||
|
||||
public void Cancel()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user