Skip to content

Releases: tokio-rs/tokio

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)

tokio-stream-0.1.5

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

Fixed

  • stream: documentation note for throttle Unpin (#3600)

Tokio v1.4.0

20 Mar 11:21
dcac336
Compare
Choose a tag to compare

Added

  • macros: introduce biased argument for select! (#3603)
  • runtime: add Handle::block_on (#3569)

Fixed

  • runtime: avoid unnecessary polling of block_on future (#3582)
  • runtime: fix memory leak/growth when creating many runtimes (#3564)
  • runtime: mark EnterGuard with must_use (#3609)

Documented

  • chore: mention fix for building docs in contributing guide (#3618)
  • doc: add link to PollSender (#3613)
  • doc: alias sleep to delay (#3604)
  • sync: improve Mutex FIFO explanation (#3615)
  • timer: fix double newline in module docs (#3617)

Tokio v1.3.0

09 Mar 21:12
d0e4dd1
Compare
Choose a tag to compare

Added

  • coop: expose an unconstrained() opt-out (#3547)
  • net: add into_std for net types without it (#3509)
  • sync: add same_channel method to mpsc::Sender (#3532)
  • sync: add {try_,}acquire_many_owned to Semaphore (#3535)
  • sync: add back RwLockWriteGuard::map and RwLockWriteGuard::try_map (#3348)

Fixed

  • sync: allow oneshot::Receiver::close after successful try_recv (#3552)
  • time: do not panic on timeout(Duration::MAX) (#3551)

Documented

  • doc: doc aliases for pre-1.0 function names (#3523)
  • io: fix typos (#3541)
  • io: note the EOF behaviour of read_until (#3536)
  • io: update AsyncRead::poll_read doc (#3557)
  • net: update UdpSocket splitting doc (#3517)
  • runtime: add link to LocalSet on new_current_thread (#3508)
  • runtime: update documentation of thread limits (#3527)
  • sync: do not recommend join_all for Barrier (#3514)
  • sync: documentation for oneshot (#3592)
  • sync: rename notify to notify_one (#3526)
  • time: fix typo in Sleep doc (#3515)
  • time: sync interval.rs and time/mod.rs docs (#3533)

Tokio v1.2.0

06 Feb 15:40
572a897
Compare
Choose a tag to compare

Added

  • signal: make Signal::poll_recv method public (#3383)

Fixed

  • time: make test-util paused time fully deterministic (#3492)

Documented

  • sync: link to new broadcast and watch wrappers (#3504)

Tokio v1.1.1

29 Jan 16:34
085f819
Compare
Choose a tag to compare

Forward ports 1.0.3 fix.

Fixed

  • io: memory leak during shutdown (#3477).

Tokio v1.0.3

29 Jan 01:51
5d0a81f
Compare
Choose a tag to compare

Fixed

  • io: memory leak during shutdown (#3477).