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.