So far, we have talked extensively about what async/await is and how it works. We have seen how this new tool can help us write structured code akin to procedural programming because we can get rid of other types of callbacks that break the linear readability of our code, such as closures and delegates. But we have seen that all this code doesn’t actually run at the same time, concurrently, or in a multithreaded manner.
4. Structured Concurrency
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.