Skip to content

Rename ActorQueue.isIdle to hasStartedAllWork - #102

Merged
dfed merged 1 commit into
claude/2.0-13-readmefrom
claude/2.0-14-has-started-all-work
Nov 17, 2026
Merged

dfed merged 1 commit into
claude/2.0-13-readmefrom
claude/2.0-14-has-started-all-work

Conversation

@dfed

@dfed dfed commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Requested by Dan · project thread

Part of the 2.0 stack, on top of claude/2.0-13-readme.

isIdle meant different things on the two queues:

  • On FIFOQueue, it's true once every enqueued task has finished.
  • On ActorQueue, it was true once every enqueued task had started running on the actor.

This PR renames the ActorQueue property to hasStartedAllWork. FIFOQueue.isIdle is unchanged.

  • ActorQueue.isIdle → ActorQueue.hasStartedAllWork. The doc comment drops the "idle"/"busy" wording.
  • The README section is now "Checking whether a queue has work left". It describes both properties and notes that CancellableQueue has neither.
  • The ActorQueue tests are renamed to match.

Since isIdle is new in 2.0, nothing has shipped with the old name, so no deprecation shim is needed.

🤖 Generated with 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 (c7d20de) to head (e99b6e5).

Additional details and impacted files

Impacted file tree graph

@@                  Coverage Diff                   @@
##           claude/2.0-13-readme      #102   +/-   ##
======================================================
  Coverage                100.00%   100.00%           
======================================================
  Files                        15        15           
  Lines                      3290      3290           
======================================================
  Hits                       3290      3290           
Files with missing lines Coverage Δ
Sources/AsyncQueue/ActorQueue.swift 100.00% <100.00%> (ø)
Tests/AsyncQueueTests/ActorQueueTests.swift 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dfed
dfed added this pull request to stack #103 November 16, 2026 21:42
`isIdle` meant something different on each queue: a FIFOQueue is idle once
every task has finished, while an ActorQueue was "idle" once every task had
only started running on the actor. Give the ActorQueue property a name that
says what it checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dfed
dfed force-pushed the claude/2.0-14-has-started-all-work branch from 7e5269a to e99b6e5 Compare November 16, 2026 23:40
@dfed
dfed merged commit 0b33ebc into main Nov 17, 2026
15 of 28 checks passed
@dfed
dfed deleted the claude/2.0-14-has-started-all-work 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.

1 participant