Skip to content

Releases: tokio-rs/tokio

Tokio v1.6.3

06 Jul 21:37
08337c5
Compare
Choose a tag to compare

Forward ports 1.5.1 fixes.

Fixed

  • runtime: remotely abort tasks on JoinHandle::abort (#3934)

Tokio v1.5.1

06 Jul 20:51
e385108
Compare
Choose a tag to compare

Fixed

  • runtime: remotely abort tasks on JoinHandle::abort (#3934)

tokio-1.8.0

02 Jul 20:22
677107d
Compare
Choose a tag to compare

1.8.0 (July 2, 2021)

Added

  • io: add get_{ref,mut} methods to AsyncFdReadyGuard and AsyncFdReadyMutGuard (#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> for OnceCell<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

  • doc: document cancellation safety (#3900)
  • time: add wait alias to sleep (#3897)
  • time: document auto-advancing behaviour of runtime (#3763)

Tokio v1.7.1

18 Jun 23:36
7601dc6
Compare
Choose a tag to compare

Fixed

  • runtime: fix early task shutdown during runtime shutdown (#3870)

Tokio v1.7.0

15 Jun 17:41
34c6a26
Compare
Choose a tag to compare

1.7.0 (June 15, 2021)

Added

  • net: add named pipes on windows (#3760)
  • net: add TcpSocket from std::net::TcpStream conversion (#3838)
  • sync: add receiver_count to watch::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

  • io: clarify EOF condition for AsyncReadExt::read_buf (#3850)
  • io: clarify limits on return values of AsyncWrite::poll_write (#3820)
  • sync: add examples to Semaphore (#3808)

Tokio v1.6.2

15 Jun 00:53
dfe4013
Compare
Choose a tag to compare

Fixes

  • test: sub-ms time:advance regression introduced in 1.6 (#3852)

Tokio v1.6.1

28 May 17:03
Compare
Choose a tag to compare

This release reverts #3518 because it doesn't work on some kernels due to
a kernel bug. (#3803)

Tokio v1.6.0

14 May 16:21
580dc95
Compare
Choose a tag to compare

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 to AsyncWriteExt (#3737)
  • io: implement AsyncSeek for BufReader, BufWriter, and BufStream (#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 a MappedMutexGuard (#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 of libc::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

  • net: hide net::unix::datagram module from docs (#3775)
  • process: updated example (#3748)
  • sync: Barrier doc should use task, not thread (#3780)
  • task: update documentation on block_in_place (#3753)

Tokio v1.5.0

12 Apr 19:26
a5ee2f0
Compare
Choose a tag to compare

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 for TcpSocket (#3684)
  • sync: add OnceCell (#3591)
  • sync: add OwnedRwLockReadGuard and OwnedRwLockWriteGuard (#3340)
  • sync: add Semaphore::is_closed (#3673)
  • sync: add mpsc::Sender::capacity (#3690)
  • sync: allow configuring RwLock max reads (#3644)
  • task: add sync_scope for LocalKey (#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

  • io: clarify requirements of AsyncFd (#3635)
  • runtime: fix unclear docs for {Handle,Runtime}::block_on (#3628)
  • sync: document that Semaphore is fair (#3693)
  • sync: improve doc on blocking mutex (#3645)

tokio-util-0.6.5

20 Mar 11:20
b1310ad
Compare
Choose a tag to compare

Fixed

  • util: annotate time module as requiring time feature (#3606)