Skip to content

v1.12.0

Compare
Choose a tag to compare
@joshtriplett joshtriplett released this 18 Jun 22:18
· 55 commits to main since this release
v1.12.0
1130279

This release stabilizes some long-awaited APIs that help people build async interfaces and interoperate with other APIs.

Added

  • task::spawn_blocking is now stabilized. We consider it a fundamental API for bridging between blocking code and async code, and we widely use it within async-std's own implementation.
  • Add TryFrom implementations to convert TcpListener, TcpStream, UdpSocket, UnixDatagram, UnixListener, and UnixStream to their synchronous equivalents, including putting them back into blocking mode.

Changed

  • async-std no longer depends on num_cpus; it uses functionality in the standard library instead (via async-global-executor).
  • Miscellaneous documentation fixes and cleanups.