Repository navigation
feat(async): deadline waits, periodic timers and immediate permits - #173
Merged
Merged
Conversation
Refs #172. Add shared deadline waits, cancellation-safe fixed-cadence ticks with explicit burst catch-up, and owned non-waiting permits.
This was referenced Sep 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.