Conclusion
In this lesson, you looked at structured concurrency. You learned:
- About the differences between structured concurrency and just using async/await.
- How to use
TaskGroupto create and manage a group of related tasks. - How to handle errors and cancelations on a
TaskGroup.
In the next lesson, you’ll learn about an advanced concept related to structured concurrency, AsyncStream.