tokio-1.47.5
Ripple-TS/rippletokio-1.47.5May 7, 2026by Darksonn
AI Summary
Tokio v1.47.5 provides a series of bug fixes targeting the `sync` module, specifically improving the robustness of MPSC channel operations and RwLock implementations to handle specific edge cases involving permit release and channel closure.
Key Highlights
- Resolved `mpsc` channel length underflow issue.
- Fixed receiver notification in `OwnedPermit::release()`.
- Implemented check for `RwLock` `max_readers` non-zero constraint.
- Updated `try_recv()` to return `Empty` when permits remain on a closed channel.
Full Release Notes
# 1.47.5 (May 7th, 2026) ### Fixed * sync: fix underflow in mpsc channel `len()` ([#8062]) * sync: notify receivers in mpsc `OwnedPermit::release()` method ([#8075]) * sync: require that an `RwLock` has `max_readers != 0` ([#8076]) * sync: return `Empty` from `try_recv()` when mpsc is closed with outstanding permits ([#8074]) [#8062]: https://github.com/tokio-rs/tokio/pull/8062 [#8074]: https://github.com/tokio-rs/tokio/pull/8074 [#8075]: https://github.com/tokio-rs/tokio/pull/8075 [#8076]: https://github.com/tokio-rs/tokio/pull/8076