Skip to content

feat(async): deadline waits, periodic timers and immediate permits - #173

Merged
zackees merged 1 commit into
mainfrom
feat/async-timers-permits
Sep 13, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/async-timers-permits

Conversation

@zackees

@zackees zackees commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

Refs #172. Coordinated with FastLED/cli#239 and FastLED/cli#229.

Adds sleep_until(Deadline), PeriodicTimer with immediate first tick, cancellation-safe pending ticks and explicit burst catch-up, plus Semaphore::try_acquire with owned permits. Periods must be positive and at most 365 days; construction rejects missing runtime, and timer-enabled runtime is documented as a prerequisite. No new dependencies, runtime, worker or buffer.

Stacked on #171 (itself on #169). Merge predecessors first, then retarget to main. First-party adoption uses a migration-only path patch until an exact upstream release is published.

RED: focused tests failed to compile because all three APIs were missing. GREEN: five focused tests, full default suite, strict all-target Clippy. One read-only reviewer independently reran focused tests and found no actionable issues.

FastLED adoption removes all direct Tokio timers and semaphores, preserving 100ms liveness checks and four-request sleep admission / HTTP429. Its boundary test failed before adoption and passes afterward. Final validation: 255 Rust tests (including strengthened HTTP429/released-slot test), strict Clippy, 27 Python tests / 1 skip, Ruff pass.

Refs #172. Add shared deadline waits, cancellation-safe fixed-cadence ticks with explicit burst catch-up, and owned non-waiting permits.
@zackees
zackees changed the base branch from feat/blocking-channel-send to main September 13, 2026 06:03
@zackees
zackees merged commit 1f15723 into main Sep 13, 2026
43 checks passed
@zackees
zackees deleted the feat/async-timers-permits branch November 5, 2026 05:51
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