tokio-1.9.0

tokio-rs/tokiotokio-1.9.0Jul 22, 2021by Darksonn

AI Summary

Adds TcpStream customization, mutex getters, and task-local nameable futures. Also fixes the leaks backported in 1.8.3.

Key Highlights

  • Added ability to customize I/O operations for TcpStream
  • Added getter for mutex from guard
  • Exposed nameable future for TaskLocal::scope
  • Fixed leaks in LocalSet and future output panic drop
  • Removed mutex in JoinError

New Features

  • Customized I/O operations for TcpStream
  • Mutex getter from guard
  • Nameable future for TaskLocal::scope

Full Release Notes

# 1.9.0 (July 19, 2021)

### Added

 - net: allow customized I/O operations for `TcpStream` ([#3888])
 - sync: add getter for the mutex from a guard ([#3928])
 - task: expose nameable future for `TaskLocal::scope` ([#3273])

### Fixed

 - Fix leak if output of future panics on drop ([#3967])
 - Fix leak in `LocalSet` ([#3978])

### Changes

 - runtime: reorganize parts of the runtime ([#3909], [#3939], [#3950], [#3955], [#3980])
 - sync: clean up `OnceCell` ([#3945])
 - task: remove mutex in `JoinError` ([#3959])

[#3273]: https://github.com/tokio-rs/tokio/pull/3273
[#3888]: https://github.com/tokio-rs/tokio/pull/3888
[#3909]: https://github.com/tokio-rs/tokio/pull/3909
[#3928]: https://github.com/tokio-rs/tokio/pull/3928
[#3934]: https://github.com/tokio-rs/tokio/pull/3934
[#3939]: https://github.com/tokio-rs/tokio/pull/3939
[#3945]: https://github.com/tokio-rs/tokio/pull/3945
[#3950]: https://github.com/tokio-rs/tokio/pull/3950
[#3955]: https://github.com/tokio-rs/tokio/pull/3955
[#3959]: https://github.com/tokio-rs/tokio/pull/3959
[#3967]: https://github.com/tokio-rs/tokio/pull/3967
[#3978]: https://github.com/tokio-rs/tokio/pull/3978
[#3980]: https://github.com/tokio-rs/tokio/pull/3980