← Back to Pull requests

Fix MultiProducerSingleConsumerAsyncChannel doc examples to use takeChannel() #460

Merged
aniketatgithub merged 1 files (8 lines) on Oct 02, 2026 12:04 UTC
View on GitHub
aniketatgithub aniketatgithub commented on Oct 02, 2026 08:15 UTC
Author

Fixes #458.

The doc comments on MultiProducerSingleConsumerAsyncChannel and ChannelAndStream showed consume channelAndSource.channel as the way to extract the channel from the returned pair. But the stored channel property is internal (it is wrapped in an internal helper type), so the documented snippet fails to compile for clients with 'channel' is inaccessible due to 'internal' protection level.

The supported API for extracting the channel is the public takeChannel() method. This updates both doc examples to use it.

Diff: 8 lines (+4 / -4) across 1 files Reviewer: FranzBusch Review duration: 228m
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.16) × (1 − Review Confidence (0.70)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.16 · 8 lines diff across 1 files
0.16
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.54 · 1 substantive comment(s)
0.54
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
70%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.131
Real PR Conversation Timeline
3 items
FranzBusch FranzBusch approved these changes on Oct 02, 2026 12:04 UTC
Approved Reviewer

Approved these changes.

FranzBusch FranzBusch commented on Oct 02, 2026 12:04 UTC
Contributor

Thanks for the fix!

Reviewers
Assignees
aniketatgithub aniketatgithub
Labels
risk: low confidence: 70.1% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 16.1% (LOW) · Higher = larger blast radius
16.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 70.1% · Lower = rushed or shallow review
70.1%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 4.8% · Safe to merge
4.8%