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
yoshuawuyts
released this
This release includes 16 new APIs, including new streams combinators, Futures concurrency macros, and extensions to the sync and io submodules.
example using future::join
use async_std::future;
let a = future::ready(1);
let b = future::ready(2);
let c = future::ready(3);
let f = future::join!(a, b, c);
assert_eq!(f.await, (1, 2, 3));Added
- Added
future::joinmacro as "unstable" - Added
future::selectmacro as "unstable" - Added
future::try_joinmacro as "unstable" - Added
future::try_selectmacro as "unstable" - Added
io::BufWriterstruct - Added
stream::Extendtrait - Added
stream::Stream::chainmethod - Added
stream::Stream::filtermethod - Added
stream::Stream::inspectmethod - Added
stream::Stream::skip_whilemethod - Added
stream::Stream::skipmethod - Added
stream::Stream::step_bymethod - Added
sync::Arcstruct from stdlib - Added
sync::Barrierstruct as "unstable" - Added
sync::Weakstruct from stdlib - Added
task::readymacro as "unstable"
Changed
- Correctly marked the
pinsubmodule as "unstable" in the docs - Updated tutorial to have certain functions suffixed with
_loop iotraits are now re-exports of futures-rs types, allowing them to be
implementedstreamtraits are now re-exports of futures-rs types, allowing them to be
implementedprelude::*now needs to be in scope for functionsioandstreamtraits
to work