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)
- Goroutines (cost, lifecycle)
- Channels: unbuffered vs buffered, send/receive
close,rangeover channels, nil channel behaviorselect(default case, timeouts withtime.After)sync:Mutex,RWMutex,WaitGroup,Once,Condsync/atomicand the memory model in one paragraphcontext.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: truefor 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.