샘플
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
케이스
- 목표
- Tokio broadcast channels require navigating zero-receiver SendError drops, RecvError::Lagged stream recovery without premature loop termination, and late subscription history exclusion HOW
- 패키지
- tokio 1.43.0
- 환경
- rust
- 생성일
- 2026-08-16T06:46:26Z
컨트랙트
- 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
파일
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9