iOS / Swift / Concurrency and data boundaries
iOS / Swift β Concurrency and data boundaries
Cancellation, HTTP decoding, observed models, freshness, persistence contexts, and test evidence.
What you will learn
- Cancellation, HTTP decoding, observed models, freshness, persistence contexts, and test evidence.
Async, await, and structured cancellation
Understand suspension and cooperative cancellation before connecting tasks to a screen lifetime.
Start learningURLSession, Codable, and response contracts
Separate transport success, HTTP acceptance, decoding, and domain validation before publishing remote data.
Start learningObservation and main-actor models
Separate change tracking, mutation authority, actor isolation, and resource ownership in a shared UI model.
Start learningActor reentrancy and result freshness
Protect semantic ordering across suspension points even when actor isolation already prevents unsynchronized memory access.
Start learningVersioned storage and SwiftData contexts
Distinguish serialization, tracked in-memory changes, persistence, and authoritative synchronization.
Start learningSwift Testing, XCTest, and test boundaries
Use deterministic model checks and separate them from Apple-hosted UI, persistence, and device evidence.
Start learning