Sample
Tokio broadcast channels require navigating zero-receiver SendError drops, RecvError::Lagged stream recovery without premature loop termination, and late subscription history exclusion
sha256:8345acff9638c570b383f63d50f7d0ae8c2559955a43fd5ce4514722f7b91551
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Tokio broadcast channels require navigating zero-receiver SendError drops, RecvError::Lagged stream recovery without premature loop termination, and late subscription history exclusion HOW
- Packages
- tokio 1.43.0
- Environment
- rust
- Created
- 2026-08-16T06:46:26Z
Contract
- assert broadcast::channel(0) panics because broadcast capacity must be strictly positive
- assert tx.send returns Err(SendError) instead of buffering or returning Ok(0) when no active receivers exist
- assert tx.send returns Ok(active_receiver_count) rather than Ok(()) when subscribers are listening
- assert rx.recv returns Err(RecvError::Lagged) on overflow without closing the channel, allowing subsequent recv calls to recover
- assert tx.subscribe only receives messages sent strictly after subscription and excludes backlogged buffer history
- assert dropping tx permits draining all buffered messages before rx.recv yields Err(RecvError::Closed)
- assert rx.resubscribe creates an independent receiver that observes only future messages from the moment of call
Files
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9