v0.99.7
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