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 and Future::try_join can now join futures with different output types.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed the docs and Debug output of BufWriter.
    • ๐Ÿ›  Fixed a bug in Stream::throttle that made it consume too much CPU.