Skip to content

Tighten the README - #100

Merged
dfed merged 1 commit into
claude/2.0-12-cifrom
claude/2.0-13-readme
Nov 17, 2026
Merged

dfed merged 1 commit into
claude/2.0-12-cifrom
claude/2.0-13-readme

Conversation

@dfed

@dfed dfed commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Summary

A review of how approachable this README is compared it with the README on main. Sentence by sentence the new README is easier to read, but its first screen put "how" before "why": the example that shows the problem had moved below "Choosing a queue", under a heading that named the fix, with a lead-in that didn't say what to look for. This PR puts the problem first again and cuts repetition. The actorTaskOrdering example code, every other Swift example, and the Installation section are unchanged.

Changes

  1. Move the example section directly under the intro, ahead of "Choosing a queue".
  2. Retitle it "Task ordering in Swift concurrency" and give it a lead-in that says what the test expects.
  3. End its explanation with "The queues in this library do." as a bridge into "Choosing a queue".
  4. Shorten the "Choosing a queue" opening, and define operation where it is first used.
  5. Lighten the paragraph after the FIFOQueue example and list the deadlock warning first.
  6. Cut the last ActorQueue paragraph and fold its point into the bullet about awaiting a task on the same queue ("Unlike on a FIFOQueue, this doesn't wait forever.").
  7. Trim "Checking whether a queue is idle" and move it below "Task-local values, priority, and cancellation".
  8. Say cancellation once in the CancellableQueue section, with a link to Cancellation.
  9. Fold the one-sentence "Task-local values" subsection into its section intro.
  10. Cut the Priority list from five bullets to three.
  11. Tighten the FIFOQueue opening and compare it with a serial DispatchQueue.

Validation

  • Every README Swift example builds with Swift 6.4.2 and -warnings-as-errors. All examples pass except actorTaskOrdering, which fails as its // often fails comment says.
  • The README's Swift blocks are byte-identical to before, only reordered. The Installation section is byte-identical.
  • The only in-README anchor, #cancellation, resolves to a heading.
  • swiftformat . --lint reports no changes.
  • The claim added in edit 6 matches the sources: the FIFOQueue doc comment says awaiting a task on the same queue waits forever, and ActorQueueTests awaits a nested task on the same ActorQueue.

Series

Stacked on #99, the top of the 2.0 series.


Generated by Claude Code

@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2bf44ae) to head (c7d20de).

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##           claude/2.0-12-ci      #100   +/-   ##
==================================================
  Coverage            100.00%   100.00%           
==================================================
  Files                    15        15           
  Lines                  3290      3290           
==================================================
  Hits                   3290      3290           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dfed
dfed force-pushed the claude/2.0-13-readme branch from 1094511 to a38d43c Compare November 16, 2026 11:40
@dfed
dfed added this pull request to stack #103 November 16, 2026 21:42
Put the problem before the API, so a newcomer sees why the library
exists before learning how to use it. The actorTaskOrdering example now
comes right after the intro under "Task ordering in Swift concurrency",
with a lead-in that says what the test expects, and ends on a bridge
into "Choosing a queue". The example code is unchanged.

Say each thing once:
- Define "operation" where it is first used, in the FIFOQueue section,
  and shorten the "Choosing a queue" opening.
- Tighten the FIFOQueue opening and compare it with a serial
  DispatchQueue. List the deadlock warning first.
- Fold the ActorQueue "await the task's value" paragraph into the
  bullet that contrasts it with a FIFOQueue.
- Cut the CancellableQueue cancellation bullet and point to the
  Cancellation section instead.
- Fold the one-sentence "Task-local values" subsection into its
  section intro, and cut the Priority list from five bullets to three.
- Trim "Checking whether a queue is idle" and move it below "Task-local
  values, priority, and cancellation".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
@dfed
dfed force-pushed the claude/2.0-13-readme branch from a38d43c to c7d20de Compare November 16, 2026 23:40
@dfed
dfed merged commit 96628dd into main Nov 17, 2026
12 checks passed
@dfed
dfed deleted the claude/2.0-13-readme branch November 17, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants