iOS / Swift / Concurrency and data boundaries

iOS / Swift β€” Concurrency and data boundaries

Cancellation, HTTP decoding, observed models, freshness, persistence contexts, and test evidence.

6 lessons Β· No account required

What you will learn

  • Cancellation, HTTP decoding, observed models, freshness, persistence contexts, and test evidence.
  1. Async, await, and structured cancellation

    Understand suspension and cooperative cancellation before connecting tasks to a screen lifetime.

    Start learning
  2. URLSession, Codable, and response contracts

    Separate transport success, HTTP acceptance, decoding, and domain validation before publishing remote data.

    Start learning
  3. Observation and main-actor models

    Separate change tracking, mutation authority, actor isolation, and resource ownership in a shared UI model.

    Start learning
  4. Actor reentrancy and result freshness

    Protect semantic ordering across suspension points even when actor isolation already prevents unsynchronized memory access.

    Start learning
  5. Versioned storage and SwiftData contexts

    Distinguish serialization, tracked in-memory changes, persistence, and authoritative synchronization.

    Start learning
  6. Swift Testing, XCTest, and test boundaries

    Use deterministic model checks and separate them from Apple-hosted UI, persistence, and device evidence.

    Start learning
Back to course