v1.12.0
This release stabilizes some long-awaited APIs that help people build async interfaces and interoperate with other APIs.
Added
task::spawn_blockingis 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
TryFromimplementations to convertTcpListener,TcpStream,UdpSocket,UnixDatagram,UnixListener, andUnixStreamto 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 (viaasync-global-executor). - Miscellaneous documentation fixes and cleanups.