© Andrés Ibañez Kautsch 2023
A. I. KautschModern Concurrency on Apple Platformshttps://doi.org/10.1007/978-1-4842-8695-1_2

2. Introducing async/await

Andrés Ibañez Kautsch1  
(1)
La Paz, Bolivia
 

In the last chapter, we talked about some common problems people run into when writing concurrent and multithreaded code. We also saw some of the options Apple has for developers for this job, from lower-level alternatives that are hard to use correctly, to higher-level alternatives that are easier to use, but have less flexibility.

The rest of this book will focus on the new concurrency system which we will simply call async/await. In this chapter, we will explore the basic building of this new system – the async and await keywords. We will not delve into ...

Get Modern Concurrency on Apple Platforms: Using async/await with Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.