Repository navigation
feat(async): bounded blocking send for synchronous producers - #171
Merged
Merged
Conversation
Refs #170. Preserve queue backpressure and unsent values; reject entered runtimes and wake producers when receivers close or drop.
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 #170. Coordinated with FastLED/cli#239 and FastLED/cli#229.
Adds a facade-owned blocking-send adapter for synchronous output-reader threads. It uses the existing bounded queue, returns the unsent value on receiver closure/drop or entered-runtime rejection, and creates no runtime, thread, or extra buffer. Cancellation closes/drops the receiver; no independent timer is introduced.
Stacked on #169 to keep this diff scoped; HTTP must land first, then retarget this PR to main. FastLED adoption remains on a migration-only path patch until the upstream release is published.
Validation: focused RED was missing-method/type compilation failure; GREEN is 3 new generic tests. Full default kernel suite and strict all-target Clippy pass. One read-only pre-push reviewer found no actionable issues and independently reran the focused tests. FastLED adoption passes 255 Rust tests, strict Clippy, and 27 Python tests (1 skipped); its expanded boundary test fails before adoption and passes afterward.