futures-rs v0.1.11 Release Notes
Release Date: 2017-03-13 // about 7 years ago-
๐ The major highlight of this release is the addition of a new "default" method on the
Sink
trait,Sink::close
. This method is used to indicate to a sink that no new values will ever need to get pushed into it. This can be used to implement graceful shutdown of protocols and otherwise simply indicates to a sink that it can start freeing up resources.Currently this method is not a default method to preserve backwards 0๏ธโฃ compatibility, but it's intended to become a default method in the 0.2 series of the
futures
crate. It's highly recommended to audit implementations ofSink
to implement theclose
method as is fit.๐ Other changes in this release are:
- A new select combinator,
Future::select2
was added for a heterogeneous select. - ๐ A
Shared::peek
method was added to check to see if it's done. Sink::map_err
was implemented- ๐ The
log
dependency was removed - Implementations of the
Debug
trait are now generally available. - The
stream::IterStream
type was renamed tostream::Iter
(with a reexport for the old name). - โ Add a
Sink::wait
method which returns an adapter to use an arbitrarySink
synchronously. - A
Stream::concat
method was added to concatenate a sequence of lists. - The
oneshot::Sender::complete
method was renamed tosend
and now returns aResult
indicating successful transmission of a message or not. Note that thecomplete
method still exists, it's just deprecated.
- A new select combinator,