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

10. @TaskLocal

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

Swift as a language is rich in a lot of features. The language itself supports the existence of the modern concurrency system, by introducing features that make it possible to catch a lot of common concurrency problems at compile-time rather than runtime. This makes it easy to release very robust apps even if they use a lot of concurrency behind the scenes.

Swift has one very slightly obscure feature – Property wrappers. They are used in many places in SwiftUI (@State, @StateObject, @EnvironmentObject, etc.), but other than that, many developers are not aware that ...

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.