Move beyond memorising
The hard part is understanding execution, isolation,
ownership and cancellation.
A piece of code can compile and still be difficult to
reason about. Strong concurrency code makes it clear
what can run at the same time, which state is protected,
where UI work belongs and what should happen when work
is cancelled.
This hub focuses on those decisions — not just syntax.
Learn the concepts that make concurrent code easier
to reason about, test and explain.
Understand async functions, child tasks,
task groups and how structured concurrency
keeps lifetimes easier to reason about.
Learn what actor isolation means, why data races
happen and how actors change the way shared mutable
state is designed.
Understand why values cross concurrency boundaries,
what Sendable communicates and where compiler
warnings are pointing to real design problems.
Make cancellation intentional, avoid unnecessary work
and understand when MainActor isolation belongs in
your application.
Modern Swift concurrency is easier to understand when
you reason about tasks, isolation and suspension points
instead of trying to map every line directly to a thread.
That shift makes code reviews, debugging and interview
explanations much stronger.
Practical explanations for writing asynchronous
Swift that is easier to reason about and maintain.
Use the learning path above to understand tasks,
isolation, Sendable and cancellation, then apply
those ideas in a complete SwiftUI application.
Use these topics as a map of the ideas worth understanding,
not just APIs worth memorising.
These are the habits that often make async Swift more
confusing, fragile or difficult to explain.
Creating unstructured work by default can hide
lifetimes and make cancellation harder to follow.
MainActor is for isolation, not a blanket fix for
every concurrency warning or state-management problem.
Suspension and thread choice are not the same thing.
That mental model quickly creates incorrect assumptions.
Async work that outlives the screen or user intent
can waste resources and update stale state.
Detached work drops useful structure and inherited
context, so it should be an intentional choice.
Compiler warnings often expose real ownership or
isolation problems. Treat them as design feedback.
Start with readable asynchronous code, then build toward
isolation, cancellation and production-level design.
Learn what suspension means and how async call chains fit together.
Use child tasks and task groups without losing control of lifetimes.
Introduce actors when multiple tasks need safe access to mutable state.
Understand MainActor, actor boundaries and Sendable requirements.
Make work stoppable and avoid keeping obsolete tasks alive.
Connect asynchronous state to a real interface without hiding the lifecycle.
What actually happens when an async function reaches an await?
What is the difference between creating a Task and using a TaskGroup?
What problem does actor isolation solve?
When should code be isolated to MainActor?
Why does Sendable matter when values cross concurrency boundaries?
How should cancellation propagate through asynchronous work?
How would you test concurrent code without relying on arbitrary delays?
I'm Kevin Reid, an iOS developer with more than
seven years of professional experience, including
work at Apple, J.P. Morgan and LexisNexis.
iOS Insights focuses on helping you understand
why the code works, where the risks are and how
to explain the decisions behind the implementation.
Move from isolated async examples to applications
where networking, state, cancellation and UI updates
all have to work together.
Write Safer Async Swift.
Understand What Your Code Is Actually Doing.
async and await.
Learn how tasks, actors, isolation, cancellation, Sendable,
MainActor and structured concurrency fit together in real iOS apps.
Concurrency Is About More Than Making Code Asynchronous
Understand the Model Behind Modern Async Swift
Structure Tasks Clearly
Protect Shared State
Reason About Sendable
Handle Cancellation & UI Work
Ask Better Questions Than “Which Thread Is This On?”
Swift Concurrency Articles
Build the Concurrency Mental Model First
Swift Concurrency From Fundamentals to Production Code
Code That Compiles Can Still Be Hard to Reason About
Wrapping Everything in
TaskPutting Too Much on
@MainActorAssuming
await Means “Background Thread”Ignoring Cancellation
Using Detached Tasks Without a Clear Reason
Silencing
Sendable Warnings
Learn Concurrency in the Order You’ll Actually Use It
Questions You Should Be Able to Explain
Learn Concurrency as an Engineering Skill
Use Concurrency Inside a Complete iOS App
SWIFT CONCURRENCY
Build
·
Understand
·
Explain
BEYOND ASYNC/AWAIT
CORE CONCURRENCY SKILLS
BUILD THE RIGHT MENTAL MODEL
01
What work belongs to this task?
02
What state is isolated, and by what?
03
Where can this function suspend?
04
What happens if the work is cancelled?
05
Which values cross isolation boundaries?
LATEST GUIDES
START LEARNING
EXPLORE THE TOPICS
async / await
Suspension, asynchronous functions and clear call chains.
Task & TaskGroup
Child tasks, parallel work and structured lifetimes.
Actors
Protect shared mutable state with isolation.
MainActor
Understand UI isolation without over-annotating everything.
Sendable
Reason about values crossing concurrency boundaries safely.
Cancellation
Stop unnecessary work and make task lifecycles intentional.
AsyncSequence
Model streams of asynchronous values cleanly.
Testing Concurrency
Keep async tests deterministic and avoid timing-based assumptions.
COMMON SWIFT CONCURRENCY MISTAKES
A PRACTICAL LEARNING PATH
01
Understand async / await
THINK LIKE AN IOS ENGINEER
01
02
03
04
05
06
07
PROFESSIONAL IOS EXPERIENCE
7+ Years
·
Apple
·
J.P. Morgan
·
LexisNexis
READY TO APPLY IT?