async-std v1.2.0 Release Notes
Release Date: 2019-11-27 // over 4 years ago-
๐ API Documentation
This patch includes some minor quality-of-life improvements, introduces a ๐ new
Stream::unzip
API, and adds verbose errors to our networking types.This means if you can't connect to a socket, you'll never have to wonder again which address it was you couldn't connect to, instead of having to go through the motions to debug what the address was.
Example
Unzip a stream of tuples into two collections:
use async_std::prelude::*; use async_std::stream; let s = stream::from_iter(vec![(1,2), (3,4)]); let (left, right): (Vec<_>, Vec<_>) = s.unzip().await; assert_eq!(left, [1, 3]); assert_eq!(right, [2, 4]);
โ Added
- โ Added
Stream::unzip
as "unstable". - โ Added verbose errors to the networking types.
๐ Changed
- ๐ท Enabled CI on master branch.
Future::join
andFuture::try_join
can now join futures with different output types.
๐ Fixed
- ๐ Fixed the docs and
Debug
output ofBufWriter
. - ๐ Fixed a bug in
Stream::throttle
that made it consume too much CPU.
- โ Added