Jacob’s Tech Tavern

Jacob’s Tech Tavern

Share this post

Jacob’s Tech Tavern
Jacob’s Tech Tavern
Advanced Swift Concurrency: Understanding Tasks
Copy link
Facebook
Email
Notes
More

Advanced Swift Concurrency: Understanding Tasks

A practical guide to the full power of Tasks

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

Share this post

Jacob’s Tech Tavern
Jacob’s Tech Tavern
Advanced Swift Concurrency: Understanding Tasks
Copy link
Facebook
Email
Notes
More
2
Share

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 subscribers get full access to this article, plus my full Quick Hacks library. You’ll also get all my long-form content 3 weeks before anyone else.

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

Copy link
Facebook
Email
Notes
More