Skip to content

Phase 14: Content: Section H (concurrency, solo) ​

Issue #15 · open

Part of #1.

What this phase delivers ​

Authored content for Section H: Concurrency (34–40), exercising the streamed-replay UI in earnest. Solo phase — concurrency is the densest material and the only section where output timing matters.

Scope (7 lessons + 1 checkpoint) ​

  1. Goroutines (cost, lifecycle)
  2. Channels: unbuffered vs buffered, send/receive
  3. close, range over channels, nil channel behavior
  4. select (default case, timeouts with time.After)
  5. sync: Mutex, RWMutex, WaitGroup, Once, Cond
  6. sync/atomic and the memory model in one paragraph
  7. context.Context — cancellation, deadlines, values (with anti-patterns)

Every lesson:

  • One-line italic note: "Playground uses a deterministic fake clock; real runtime scheduling will differ."
  • streamReplay: true for lessons where output interleaving / timing is the point (34, 35, 36, 37 at minimum).
  • Gotcha callouts: nil channel never sends/receives; sending on closed channel panics; etc.

Acceptance criteria ​

  • [ ] All 7 lessons run successfully and produce expected interleaved output.
  • [ ] Stream replay visibly works on lesson 34.
  • [ ] "Skip animation" works on every replay-enabled lesson.
  • [ ] Every lesson has the deterministic-clock note.
  • [ ] Section H checkpoint: 5 questions including "send on closed channel" and "select with default."

Dependencies ​

Requires: #6, #11. Unblocks: #20.

Decision references ​

D2.7, D2.8, D5.5, D7.2.


Estimate: 6–8h.

Built as an experiment in six-model parity.