Sourced from tokio's releases.
Tokio v1.40.0
1.40.0 (August 30th, 2024)
Added
- io: add
util::SimplexStream
(#6589)- process: stabilize
Command::process_group
(#6731)- sync: add
{TrySendError,SendTimeoutError}::into_inner
(#6755)- task: add
JoinSet::join_all
(#6784)Added (unstable)
- runtime: add
Builder::{on_task_spawn, on_task_terminate}
(#6742)Changed
- io: use vectored io for
write_all_buf
when possible (#6724)- runtime: prevent niche-optimization to avoid triggering miri (#6744)
- sync: mark mpsc types as
UnwindSafe
(#6783)- sync,time: make
Sleep
andBatchSemaphore
instrumentation explicit roots (#6727)- task: use
NonZeroU64
fortask::Id
(#6733)- task: include panic message when printing
JoinError
(#6753)- task: add
#[must_use]
toJoinHandle::abort_handle
(#6762)- time: eliminate timer wheel allocations (#6779)
Documented
- docs: clarify that
[build]
section doesn't go in Cargo.toml (#6728)- io: clarify zero remaining capacity case (#6790)
- macros: improve documentation for
select!
(#6774)- sync: document mpsc channel allocation behavior (#6773)
#6589: tokio-rs/tokio#6589 #6724: tokio-rs/tokio#6724 #6727: tokio-rs/tokio#6727 #6728: tokio-rs/tokio#6728 #6731: tokio-rs/tokio#6731 #6733: tokio-rs/tokio#6733 #6742: tokio-rs/tokio#6742 #6744: tokio-rs/tokio#6744 #6753: tokio-rs/tokio#6753 #6755: tokio-rs/tokio#6755 #6762: tokio-rs/tokio#6762 #6773: tokio-rs/tokio#6773 #6774: tokio-rs/tokio#6774 #6779: tokio-rs/tokio#6779 #6783: tokio-rs/tokio#6783 #6784: tokio-rs/tokio#6784 #6790: tokio-rs/tokio#6790
ea6d652
chore: prepare Tokio v1.40.0 (#6806)11f66f4
chore: replace ready!
with std::task::ready!
(#6804)479a56a
time: eliminate timer wheel allocations (#6779)b37f0de
runtime: implement initial set of task hooks (#6742)c9fad08
codec: fix typo in the docs for Encoder::Error
(#6800)cc70a21
task: add join_all
method to JoinSet
(#6784)1ac8dff
task: add AbortOnDropHandle
type (#6786)ff3f2a8
io: add SimplexStream
(#6589)5b9a290
io: clarify zero remaining capacity case (#6790)70569bd
task: fix typo in TaskTracker
docs (#6792)