Swift Concurrency's Biggest Unintuitive Gotchas
Swift Concurrency's Biggest Unintuitive GotchasContext inheritance, cascading cancellation, interleaving, and Swift 6.2
Swift Concurrency is the most powerful paradigm in the language. Consequently, it’s also really bloody hard to learn. Not only are there dozens of keywords and APIs to learn; there are also some weird behaviours that can throw you off big-time. These unintuitive behaviours introduce footguns and WTFs-per-minute which act like Lego on the carpet of your barefoot learning journey. There are logical design decisions behind the unintuitive behaviour. Understanding these decisions builds up your own mental model. Your mental model codifies the obscure and brings enlightenment: an intuition for the unintuitive. Today we'll be going over:
Some of these gotchas are so misunderstood, AI will explain them completely wrong. Seriously, I checked. Since this article is members-only, they will probably continue to get it wrong. How’s that for a USP?
Keep reading with a 7-day free trialSubscribe to Jacob’s Tech Tavern to keep reading this post and get 7 days of free access to the full post archives. A subscription gets you:
|