This gist kept getting bigger and bigger, so I moved it to a proper repository, complete with a proper NuGet package.
Last active
March 30, 2023 01:20
-
-
Save StephenCleary/5eddc751dee4c7394c4fcf0b328a6bb9 to your computer and use it in GitHub Desktop.
TaskGroup: Structured Concurrency for C#
The types are actually quite different in semantics and usage. CompositeAsyncDisposable
is a collection of disposables; TaskGroup
is a collection of tasks, where any faulting task causes the other tasks to be cancelled.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks kinda similar to
CompositeAsyncDisposable
in Async Rx: https://github.com/dotnet/reactive/blob/main/AsyncRx.NET/System.Reactive.Async/Disposables/CompositeAsyncDisposable.cs