Jacob’s Tech Tavern

Jacob’s Tech Tavern

Advanced Swift Concurrency: Understanding Tasks

A practical guide to the full power of Tasks

Jacob Bartlett's avatar
Jacob Bartlett
Nov 12, 2024
∙ Paid

Swift Concurrency was a pretty painful wait. Pun intended. For the first 7 years of the language, Swift developers had to make do with GCD and completion handlers to manage concurrency in their applications. The eventual Swift Concurrency paradigm was worth the wait though. It’s elegant to get started with, and incredibly powerful when you know how to use it.

I’ve written before about the full toolkit available in Swift Concurrency.

But today we’re doing a practical deep dive into the basic building block underlying all concurrency in your Swift apps: Task. I’ve hacked together an example app to demonstrate some real-life scenarios where you might need the advanced Task functionality available.

We’ll be covering:

  • Priority

  • Task Properties

  • Cancellation

  • Yielding

  • Timeouts

Paid members get lots of nice things:

⚓️ Access my full library of paywalled articles (including this one)
🚀 Read free articles a month before anyone else
🧵 Master concurrency with my full course and advanced training
🧑‍🚀 Get a free copy of my new eBook, “Land your iOS Tech Job”
❤️‍🩹 Support independent, sometimes funny, tech writing

User's avatar

Continue reading this post for free, courtesy of Jacob Bartlett.

Or purchase a paid subscription.
© 2026 Jacob Bartlett · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture