feat(channel): implement the terminal channel taxonomy - #183
Draft
tisonkun wants to merge 1 commit into
Draft
Conversation
tisonkun
force-pushed
the
codex/channel-terminal
branch
from
August 24, 2026 03:37
941c8df to
8e1f1f8
Compare
tisonkun
marked this pull request as draft
August 24, 2026 04:00
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.
Closes #167.
Summary
channelsource tree.channelumbrella Cargo feature.Semantics
Implementation
AtomicWakerreceiver-notification implementation from perf(mpsc): replace boxed receiver wakers #182, and SPSC reuses that backend through a zero-cost topology wrapper.AtomicWakeronly for the single receiver registration in the MPSC/SPSC backend; multi-receiver queues and broadcasts retain their multi-waiterWaitSetdesign.Performance
After rebasing onto
c505b91, a same-process A/B binary linked both the latestmainimplementation and this branch with only thempscfeature:mainmedianThis verifies that moving MPSC under the private source tree preserves the AtomicWaker optimization. Representative medians for the new channel hot paths:
A broadcast run with 256 historical subscriptions and one live subscription remained close to the one-live-subscription baseline (41.06 ns versus 37.81 ns).
Validation
cargo x lintcargo x testcargo x checkcargo +1.86.0 check -p asyncband --all-features --all-targets