Swift Concurrency: Parallelism
In the previous post, we loaded three independent requests sequentially. Even though the operations didn’t depend on each other, each one waited for the previous to finish To run them in parallel while keeping structured concurrency, Swift gives us two main tools: async let and TaskGroup. When to use async let Let’s start with async let. It allows you to fire off multiple operations in parallel within the same task context: ...