Skip to content

Commit

Permalink
await WriteAsync
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bacher <[email protected]>
  • Loading branch information
bacherfl committed Jan 3, 2024
1 parent dc27b0c commit 6836250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenFeature/EventExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ private async Task ProcessFeatureProviderEventsAsync(FeatureProviderReference pr
switch (item)
{
case ProviderEventPayload eventPayload:
this.EventChannel.Writer.WriteAsync(new Event { Provider = providerRef, EventPayload = eventPayload });
await this.EventChannel.Writer.WriteAsync(new Event { Provider = providerRef, EventPayload = eventPayload }).ConfigureAwait(false);
break;
case ShutdownSignal _:
providerRef.ShutdownSemaphore.Release();
Expand Down Expand Up @@ -264,7 +264,7 @@ private async Task ProcessEventAsync()
public async Task SignalShutdownAsync()
{
// Enqueue a shutdown signal
this.EventChannel.Writer.WriteAsync(new ShutdownSignal());
await this.EventChannel.Writer.WriteAsync(new ShutdownSignal()).ConfigureAwait(false);

// Wait for the processing loop to acknowledge the shutdown
await this._shutdownSemaphore.WaitAsync().ConfigureAwait(false);
Expand Down

0 comments on commit 6836250

Please sign in to comment.