withTaskGroup

Asked on 2026-05-03

3 searches

The concept of withTaskGroup is discussed in the session titled "Code-along: Elevate an app with Swift concurrency" from WWDC 2025. Task Groups provide fine-grained control over child tasks and their results, allowing you to kick off any number of child tasks that can run in parallel. Each child task can take arbitrary amounts of time to finish, and they might complete in a different order. Task Groups conform to async sequences, enabling iteration over results as they complete.

For more detailed information, you can refer to the session chapter on "Controlling asynchronous code with structured concurrency" in the Code-along: Elevate an app with Swift concurrency (27:56) session.