feat(async/unstable): add Channel#7035
Merged
kt3k merged 3 commits intodenoland:mainfrom Mar 16, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7035 +/- ##
==========================================
+ Coverage 93.88% 93.89% +0.01%
==========================================
Files 627 628 +1
Lines 49995 50136 +141
Branches 8794 8825 +31
==========================================
+ Hits 46936 47077 +141
Misses 2478 2478
Partials 581 581 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
kt3k
approved these changes
Mar 16, 2026
Contributor
kt3k
left a comment
There was a problem hiding this comment.
Looks an interesting idea. Thanks for the suggestion. LGTM
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.
Adds
Channel<T>to @std/async (as the concurrency module was rejected).It is a typed async channel for passing values between concurrent tasks. It supports bounded buffering with backpressure, unbuffered rendezvous mode, non-blocking
trySend/tryReceivevariants, async iteration, and clean shutdown viaclose()with optional error propagation. The channel implements bothDisposableandAsyncDisposablefor use withusingandawait using.