futures-rs v0.1.15 Release Notes
Release Date: 2017-08-24 // over 6 years ago-
- ๐ Improve performance of
BiLock
methods - ๐ฏ Implement
Clone
forFutureResult
- Forward
Stream
trait throughSinkMapErr
- Add
stream::futures_ordered
next tofutures_unordered
- Reimplement
Stream::buffered
on top ofstream::futures_ordered
(much more efficient at scale). - โ Add a
with_notify
function for abstractions which previously requiredUnparkEvent
. - Add
get_ref
/get_mut
/into_inner
functions for stream take/skip methods - โ Add a
Clone
implementation forSharedItem
andSharedError
- โ Add a
mpsc::spawn
function to spawn aStream
into anExecutor
- โ Add a
reunite
function forBiLock
and the split stream/sink types to rejoin two halves and reclaim the original item. - ๐ Add
stream::poll_fn
to behave similarly tofuture::poll_fn
- Add
Sink::with_flat_map
likeIterator::flat_map
- โฌ๏ธ Bump the minimum Rust version to 1.13.0
- ๐ฆ Expose
AtomicTask
in the public API for managing synchronization around task notifications. - ๐ Unify the
Canceled
type of thesync
andunsync
modules. - ๐ Deprecate the
boxed
methods. These methods have caused more confusion than they've solved historically, so it's recommended to use a local extension trait or a local helper instead of the trait-based methods. - ๐ Deprecate the
Stream::merge
method as it's less ergonomic thanselect
. - โ Add
oneshot::Sender::is_canceled
to test if a oneshot is canceled off a task. - ๐ Deprecates
UnboundedSender::send
in favor of a method namedunbounded_send
to avoid a conflict withSink::send
. - ๐ Deprecate the
stream::iter
function in favor of anstream::iter_ok
adaptor to avoid the need to deal withResult
manually. - โ Add an
inspect
function to theFuture
andStream
traits along the lines ofIterator::inspect
- ๐ Improve performance of