futures-rs v0.1.7 Release Notes
Release Date: 2016-12-18 // over 7 years ago-
- โ Add a
Future::shared
method for creating a future that can be shared amongst threads by cloning the future itself. All derivative futures will resolve to the same value once the original future has been resolved. - โ Add a
FutureFrom
trait for future-based conversion - ๐ Fix a wakeup bug in
Receiver::close
- โ Add
future::poll_fn
for quickly adapting aPoll
-based function to a future. - โ Add an
Either
enum with two branches to easily create one future type based on two different futures created on two branches of control flow. - โ Remove the
'static
bound onUnpark
- โก๏ธ Optimize
send_all
andforward
to send as many items as possible before callingpoll_complete
. - Unify the return types of the
ok
,err
, andresult
future to assist returning different varieties in different branches of a function. - โ Add
CpuFuture::forget
to allow the computation to continue running after a drop. - โ Add a
stream::futures_unordered
combinator to turn a list of futures into a stream representing their order of completion.
- โ Add a