tokio-1.42.0

tokio-rs/tokiotokio-1.42.0Dec 3, 2024by Darksonn

AI Summary

Added `AsyncFd::{try_io, try_io_mut}` and simplified IO readiness logic. Improved `block_in_place` yield behavior.

Key Highlights

  • Added `AsyncFd::{try_io, try_io_mut}`
  • Simplified IO readiness logic
  • Fixed `block_in_place` to not defer `yield_now`

New Features

  • AsyncFd::{try_io, try_io_mut}

Full Release Notes

# 1.42.0 (Dec 3rd, 2024)

### Added

- io: add `AsyncFd::{try_io, try_io_mut}` ([#6967])

### Fixed

- io: avoid `ptr->ref->ptr` roundtrip in RegistrationSet ([#6929])
- runtime: do not defer `yield_now` inside `block_in_place` ([#6999])

### Changes

- io: simplify io readiness logic ([#6966])

### Documented

- net: fix docs for `tokio::net::unix::{pid_t, gid_t, uid_t}` ([#6791])
- time: fix a typo in `Instant` docs ([#6982])

[#6791]: https://github.com/tokio-rs/tokio/pull/6791
[#6929]: https://github.com/tokio-rs/tokio/pull/6929
[#6966]: https://github.com/tokio-rs/tokio/pull/6966
[#6967]: https://github.com/tokio-rs/tokio/pull/6967
[#6982]: https://github.com/tokio-rs/tokio/pull/6982
[#6999]: https://github.com/tokio-rs/tokio/pull/6999