Skip to content

Commit

Permalink
Call ConfigureAwait on CancellationToken.Register.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Jan 9, 2025
1 parent dd6200c commit 6c57f81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void Signal(ResponseMessage<T> response)

public async IAsyncEnumerator<ResponseMessage<T>> GetAsyncEnumerator(CancellationToken ct = default)
{
await using (ct.Register(Dispose))
await using (ct.Register(Dispose).ConfigureAwait(false))
{
if (await new ValueTask<ResponseAndQueueUnion<T>?>(this, 0).ConfigureAwait(false) is { } union)
{
Expand Down

0 comments on commit 6c57f81

Please sign in to comment.