14
Structured Concurrency
Concurrency is an important aspect of modern programming. It enables applications to perform multiple operations simultaneously, improving efficiency and responsiveness. In Swift, concurrency has become easier to work with thanks to new features such as async/await, tasks, and task groups. These tools enable developers to write code that can handle multiple operations simultaneously, without affecting code readability or introducing errors such as race conditions and deadlocks, which are common issues when dealing with concurrent tasks.
With these new concurrency tools, we can manage tasks such as downloading data or reading/writing files more efficiently and seamlessly. async/await also makes writing asynchronous code ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access