Releases: tokio-rs/tokio
Releases · tokio-rs/tokio
Tokio v1.6.3
Tokio v1.5.1
Fixed
- runtime: remotely abort tasks on
JoinHandle::abort
(#3934)
tokio-1.8.0
1.8.0 (July 2, 2021)
Added
- io: add
get_{ref,mut}
methods toAsyncFdReadyGuard
andAsyncFdReadyMutGuard
(#3807) - io: efficient implementation of vectored writes for
BufWriter
(#3163) - net: add ready/try methods to
NamedPipe{Client,Server}
(#3866, #3899) - sync: add
watch::Receiver::borrow_and_update
(#3813) - sync: implement
From<T>
forOnceCell<T>
(#3877) - time: allow users to specify Interval behaviour when delayed (#3721)
Added (unstable)
- rt: add
tokio::task::Builder
(#3881)
Fixed
- net: handle HUP event with
UnixStream
(#3898)
Documented
Tokio v1.7.1
Fixed
- runtime: fix early task shutdown during runtime shutdown (#3870)
Tokio v1.7.0
1.7.0 (June 15, 2021)
Added
- net: add named pipes on windows (#3760)
- net: add
TcpSocket
fromstd::net::TcpStream
conversion (#3838) - sync: add
receiver_count
towatch::Sender
(#3729) - sync: export
sync::notify::Notified
future publicly (#3840) - tracing: instrument task wakers (#3836)
Fixed
- macros: suppress
clippy::default_numeric_fallback
lint in generated code (#3831) - runtime: immediately drop new tasks when runtime is shut down (#3752)
- sync: deprecate unused
mpsc::RecvError
type (#3833)
Documented
Tokio v1.6.2
Fixes
- test: sub-ms
time:advance
regression introduced in 1.6 (#3852)
Tokio v1.6.1
Tokio v1.6.0
1.6.0 (May 14, 2021)
Added
- fs: try doing a non-blocking read before punting to the threadpool (#3518)
- io: add
write_all_buf
toAsyncWriteExt
(#3737) - io: implement
AsyncSeek
forBufReader
,BufWriter
, andBufStream
(#3491) - net: support non-blocking vectored I/O (#3761)
- sync: add
mpsc::Sender::{reserve_owned, try_reserve_owned}
(#3704) - sync: add a
MutexGuard::map
method that returns aMappedMutexGuard
(#2472) - time: add getter for Interval's period (#3705)
Fixed
- io: wake pending writers on
DuplexStream
close (#3756) - process: avoid redundant effort to reap orphan processes (#3743)
- signal: use
std::os::raw::c_int
instead oflibc::c_int
on public API (#3774) - sync: preserve permit state in
notify_waiters
(#3660) - task: update
JoinHandle
panic message (#3727) - time: prevent
time::advance
from going too far (#3712)
Documented
Tokio v1.5.0
1.5.0 (April 12, 2021)
Added
- io: add
AsyncSeekExt::stream_position
(#3650) - io: add
AsyncWriteExt::write_vectored
(#3678) - io: add a
copy_bidirectional
utility (#3572) - net: implement
IntoRawFd
forTcpSocket
(#3684) - sync: add
OnceCell
(#3591) - sync: add
OwnedRwLockReadGuard
andOwnedRwLockWriteGuard
(#3340) - sync: add
Semaphore::is_closed
(#3673) - sync: add
mpsc::Sender::capacity
(#3690) - sync: allow configuring
RwLock
max reads (#3644) - task: add
sync_scope
forLocalKey
(#3612)
Fixed
- chore: try to avoid
noalias
attributes on intrusive linked list (#3654) - rt: fix panic in
JoinHandle::abort()
when called from other threads (#3672) - sync: don't panic in
oneshot::try_recv
(#3674) - sync: fix notifications getting dropped on receiver drop (#3652)
- sync: fix
Semaphore
permit overflow calculation (#3644)
Documented
tokio-util-0.6.5
Fixed
- util: annotate time module as requiring
time
feature (#3606)