Jacob’s Tech Tavern

Jacob’s Tech Tavern

Share this post

Jacob’s Tech Tavern
Jacob’s Tech Tavern
Swift Concurrency's Biggest Unintuitive Gotchas

Swift Concurrency's Biggest Unintuitive Gotchas

Context inheritance, cascading cancellation, interleaving, and Swift 6.2

Jacob Bartlett's avatar
Jacob Bartlett
Aug 19, 2025
∙ Paid
2

Share this post

Jacob’s Tech Tavern
Jacob’s Tech Tavern
Swift Concurrency's Biggest Unintuitive Gotchas
1
Share

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:

  • Actor context inheritance in Tasks (and how it works under the hood)

  • Task hierarchy & the cascading cancellation misconception

  • Actor re-entrancy & interleaving, plus a very controversial question

  • Swift 6.2 Approachable Concurrency™ turning everything on its head again

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?

Subscribe to Jacob’s Tech Tavern for free to read ludicrously in-depth articles on iOS, Swift, tech, & indie projects in your inbox every week.

Paid subscribers get much more:

  • Read this article, plus all my Elite Hacks, my exclusive advanced content 🌟

  • Get my free articles 3 weeks before anyone else 🚀

  • Access my full Swift Concurrency course 🧵

I’m in a good mood because I’m on holiday right now. If you upgrade today, you get your first month (worth $12) absolutely free. I know I say this every two weeks, but this is my best paid article yet.

Get 30 day free trial

You’ll also unlock access to my other exclusive members-only concurrency work:

The Secret to Intuitively Understanding Swift Concurrency

The Secret to Intuitively Understanding Swift Concurrency

Jacob Bartlett
·
Apr 15
Read full story
Through the Ages: Apple Concurrency APIs

Through the Ages: Apple Concurrency APIs

Jacob Bartlett
·
Jun 24
Read full story
The 1-hour Swift Concurrency course

The 1-hour Swift Concurrency course

Jacob Bartlett
·
Jul 8
Read full story

Keep reading with a 7-day free trial

Subscribe to Jacob’s Tech Tavern to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Jacob Bartlett
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share