Skip to content

Instantly share code, notes, and snippets.

@StephenCleary
Last active March 30, 2023 01:20
Show Gist options
  • Save StephenCleary/5eddc751dee4c7394c4fcf0b328a6bb9 to your computer and use it in GitHub Desktop.
Save StephenCleary/5eddc751dee4c7394c4fcf0b328a6bb9 to your computer and use it in GitHub Desktop.
TaskGroup: Structured Concurrency for C#
@StephenCleary
Copy link
Author

StephenCleary commented Mar 19, 2023

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