Stay up to date on releases
Create your free account today to subscribe to this repository for notifications about new releases, and build software alongside 40 million developers on GitHub.
Sign up for free See pricing for teams and enterprises
stjepang
released this
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::unzipas "unstable". - Added verbose errors to the networking types.
Changed
- Enabled CI on master branch.
Future::joinandFuture::try_joincan now join futures with different
output types.
Fixed
- Fixed the docs and
Debugoutput ofBufWriter. - Fixed a bug in
Stream::throttlethat made it consume too much CPU.