Skip to content

Commit

Permalink
Retain cancel callback until ForEachAsync completes (#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
idg10 authored Jul 27, 2023
1 parent dffafe1 commit 5903ac6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ private static async Task ForEachAsyncCore<TSource>(IAsyncObservable<TSource> so
var d = await source.SubscribeAsync(o).ConfigureAwait(false);

await subscription.AssignAsync(d).ConfigureAwait(false);
}

await tcs.Task.ConfigureAwait(false);
await tcs.Task.ConfigureAwait(false);
}
}
}
}

0 comments on commit 5903ac6

Please sign in to comment.