Skip to content

Generalize Tee to any channel - #111

Merged
destel merged 2 commits into
mainfrom
f/tee
Sep 11, 2026
Merged

destel merged 2 commits into
mainfrom
f/tee

Conversation

@destel

@destel destel commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Tee now accepts any channel, not only streams of Try. It never looked at the items it forwarded, so the Try constraint was incidental, and plain channels can now be duplicated the same way streams are.

Existing inferred call sites like Tee(stream) are backwards compatible and keep working.
Explicit instantiations such as rill.Tee[User](stream) must become rill.Tee[rill.Try[User]](stream).

@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.87%. Comparing base (049d498) to head (a5ee21f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #111   +/-   ##
=======================================
  Coverage   99.87%   99.87%           
=======================================
  Files          17       17           
  Lines         806      806           
=======================================
  Hits          805      805           
  Misses          1        1           

☔ View full report in Codecov by Harness.
📢 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.

@destel
destel merged commit 59fba66 into main Sep 11, 2026
6 checks passed
@destel
destel deleted the f/tee branch September 11, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant