Skip to content

feat(async/unstable): add Channel#7035

Merged
kt3k merged 3 commits intodenoland:mainfrom
tomas-zijdemans:channel2
Mar 16, 2026
Merged

feat(async/unstable): add Channel#7035
kt3k merged 3 commits intodenoland:mainfrom
tomas-zijdemans:channel2

Conversation

@tomas-zijdemans
Copy link
Copy Markdown
Contributor

@tomas-zijdemans tomas-zijdemans commented Mar 9, 2026

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/tryReceive variants, async iteration, and clean shutdown via close() with optional error propagation. The channel implements both Disposable and AsyncDisposable for use with using and await using.

@tomas-zijdemans tomas-zijdemans requested a review from kt3k as a code owner March 9, 2026 06:28
@github-actions github-actions bot added the async label Mar 9, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.89%. Comparing base (48bd522) to head (5a13f54).
⚠️ Report is 4 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks an interesting idea. Thanks for the suggestion. LGTM

@kt3k kt3k merged commit 260f5b8 into denoland:main Mar 16, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants