You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tighten watch::{Sender, Receiver} cross-thread bounds to T: Send + Sync before 1.0 #456
watch::{Sender, Receiver} currently implement Send and Sync when T: Send, because reading clones &T behind an internal exclusive Mutex. In #451, channel metadata (version, terminal disconnection state, and endpoint counts) and waiter registration were moved out of that mutex while preserving T: Send compatibility across 0.8.x.
Before 1.0 (in a coordinated 0.9 / 1.0 breaking release), evaluate tightening watch::{Sender, Receiver} cross-thread bounds to T: Send + Sync (matching tokio::sync::watch and Asyncband's other shared-read primitives such as RwLock, OnceCell, and LazyCell) so concurrent readers can inspect &T snapshots without serializing behind an exclusive value mutex, while verifying small-payload multi-threaded read throughput does not regress on reader-count atomic contention.
Activity