Tag: concurrency
All the articles with the tag "concurrency".
Testing Async Code in Swift: Stop Using Task.yield() in Your Tests
Published: at 09:00 AMWhy Task.yield() makes Swift tests flaky, and how to test Task-based code deterministically with an injectable ITaskFactory.
Demystifying Thread Hopping with Swift 6.2 Approachable Concurrency
Published: at 08:35 AMA deep dive into Swift 6.2 Approachable Concurrency, exploring how thread hopping works under the hood and what changes for developers.
Swift Concurrency: Part 4 - Actors, Executors, and Reentrancy
Published: at 11:44 AMExplore Structured Concurrency in Swift: Actors, @MainActor, @GlobalActor, understanding the Swift Concurrency runtime, and actor reentrancy.
Swift Concurrency: Part 3 - Bridging Legacy APIs with Continuations
Published: at 10:36 AMExplore Swift Continuations: the essential bridge between legacy callback-based APIs and modern async/await. Learn how to wrap completion handlers and delegates into clean, linear code with practical examples.
Swift Concurrency: Part 2 - Parent/child Relationship, Automatic Cancellation, Task Groups
Published: at 11:52 AMExplore Structured Concurrency in Swift: parent/child relationship, automatic cancellation, task groups, and more.