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

3. Continuations

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

In the last chapter, we learned about the async and await keywords to get started with the new concurrency system in Swift. We migrated a project that was using closure-based calls into async/await code. We did so by rewriting the original implementations of the methods to adapt them to the new system. But in the real world, you may not have the luxury of writing such implementations from scratch due to time constraints, or worse, technical difficulties. For these scenarios, we have Continuations, which will allow to “wrap” existing closure-based calls into async/await ...

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.