Changelog History
Page 6
-
v0.1.17 Changes
October 31, 2017- โ Add a
closemethod onsink::Wait - ๐ Undeprecate
stream::iterasstream::iter_result - ๐ Improve performance of wait-related methods
- ๐ Tweak buffered sinks with a 0 capacity to forward directly to the underlying sink.
- โ Add
FromIteratorimplementation forFuturesOrderedandFuturesUnordered.
- โ Add a
-
v0.1.16 Changes
September 15, 2017- A
preludemodule has been added to glob import from and pick up a whole bunch of useful types - ๐
sync::mpsc::Sender::poll_readyhas been added as an API - ๐
sync::mpsc::Sender::try_sendhas been added as an API
- A
-
v0.1.15 Changes
August 24, 2017- ๐ Improve performance of
BiLockmethods - ๐ฏ Implement
CloneforFutureResult - Forward
Streamtrait throughSinkMapErr - Add
stream::futures_orderednext tofutures_unordered - Reimplement
Stream::bufferedon top ofstream::futures_ordered(much more efficient at scale). - โ Add a
with_notifyfunction for abstractions which previously requiredUnparkEvent. - Add
get_ref/get_mut/into_innerfunctions for stream take/skip methods - โ Add a
Cloneimplementation forSharedItemandSharedError - โ Add a
mpsc::spawnfunction to spawn aStreaminto anExecutor - โ Add a
reunitefunction forBiLockand the split stream/sink types to rejoin two halves and reclaim the original item. - ๐ Add
stream::poll_fnto behave similarly tofuture::poll_fn - Add
Sink::with_flat_maplikeIterator::flat_map - โฌ๏ธ Bump the minimum Rust version to 1.13.0
- ๐ฆ Expose
AtomicTaskin the public API for managing synchronization around task notifications. - ๐ Unify the
Canceledtype of thesyncandunsyncmodules. - ๐ Deprecate the
boxedmethods. 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::mergemethod as it's less ergonomic thanselect. - โ Add
oneshot::Sender::is_canceledto test if a oneshot is canceled off a task. - ๐ Deprecates
UnboundedSender::sendin favor of a method namedunbounded_sendto avoid a conflict withSink::send. - ๐ Deprecate the
stream::iterfunction in favor of anstream::iter_okadaptor to avoid the need to deal withResultmanually. - โ Add an
inspectfunction to theFutureandStreamtraits along the lines ofIterator::inspect
- ๐ Improve performance of
-
v0.1.14 Changes
May 30, 2017๐ This is a relatively large release of the
futurescrate, although much of it is from reworking internals rather than new APIs. The banner feature of this ๐ release is that thefutures::{task, executor}modules are now available in ๐จno_stdcontexts! A large refactoring of the task system was performed in ๐ PR #436 to accommodate custom memory allocation schemes and otherwise remove all dependencies onstdfor the task module. More details about this change can be found on the PR itself.๐ Other API additions in this release are:
- A
FuturesUnordered::pushmethod was added and theFuturesUnorderedtype itself was completely rewritten to efficiently track a large number of futures. - ๐ A
Task::will_notify_currentmethod was added with a slightly different implementation thanTask::is_currentbut with stronger guarantees and documentation wording about its purpose. - Many combinators now have
get_ref,get_mut, andinto_innermethods for accessing internal futures and state. - ๐ A
Stream::concat2method was added which should be considered the "fixed" version ofconcat, this one doesn't panic on empty streams. - An
Executortrait has been added to represent abstracting over the concept of spawning a new task. Crates which only need the ability to spawn a future can now be generic overExecutorrather than requiring atokio_core::reactor::Handle.
๐ As with all 0.1.x releases this PR is intended to be 100% backwards compatible. All code that previously compiled should continue to do so with these changes. โก๏ธ As with other changes, though, there are also some updates to be aware of:
- The
task::parkfunction has been renamed totask::current. - The
Task::unparkfunction has been renamed toTask::notify, and in general terminology around "unpark" has shifted to terminology around "notify" - ๐ The
Unparktrait has been deprecated in favor of theNotifytrait mentioned above. - ๐ The
UnparkEventstructure has been deprecated. It currently should perform the same as it used to, but it's planned that in a future 0.1.x release the performance will regress for crates that have not transitioned away. The primary primitive to replace this is the addition of apushfunction on theFuturesUnorderedtype. If this does not help implement your use case though, please let us know! - ๐ The
Task::is_currentmethod is now deprecated, and you likely want to useTask::will_notify_currentinstead, but let us know if this doesn't suffice!
- A
-
v0.1.13 Changes
April 05, 2017- โ Add forwarding sink/stream impls for
stream::FromErrandsink::SinkFromErr - โ Add
PartialEqandEqtompsc::SendError - Reimplement
Sharedwithspawninstead ofUnparkEvent
- โ Add forwarding sink/stream impls for
-
v0.1.12 Changes
April 03, 2017- Add
Stream::from_errandSink::from_err - ๐ Allow
SendErrorto beClonewhen possible
- Add
-
v0.1.11 Changes
March 13, 2017๐ The major highlight of this release is the addition of a new "default" method on the
Sinktrait,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
futurescrate. It's highly recommended to audit implementations ofSinkto implement theclosemethod as is fit.๐ Other changes in this release are:
- A new select combinator,
Future::select2was added for a heterogeneous select. - ๐ A
Shared::peekmethod was added to check to see if it's done. Sink::map_errwas implemented- ๐ The
logdependency was removed - Implementations of the
Debugtrait are now generally available. - The
stream::IterStreamtype was renamed tostream::Iter(with a reexport for the old name). - โ Add a
Sink::waitmethod which returns an adapter to use an arbitrarySinksynchronously. - A
Stream::concatmethod was added to concatenate a sequence of lists. - The
oneshot::Sender::completemethod was renamed tosendand now returns aResultindicating successful transmission of a message or not. Note that thecompletemethod still exists, it's just deprecated.
- A new select combinator,
-
v0.1.10 Changes
January 30, 2017- โ Add a new
unsyncmodule which mirrorssyncto the extent that it can but is intended to not perform cross-thread synchronization (only usable within one thread). - ๐ Tweak
Sharedto work when handles may not get poll'd again.
- โ Add a new
-
v0.1.9 Changes
January 18, 2017- ๐ Fix
Send/Syncof a few types - โ Add
future::tail_fnfor more easily writing loops - Export SharedItem/SharedError
- โ Remove an unused type parameter in
from_err
- ๐ Fix
-
v0.1.8 Changes
January 11, 2017- ๐ Fix some race conditions in the
Sharedimplementation - โ Add
Stream::take_while - ๐ Fix an unwrap in
stream::futures_unordered - Generalize
Stream::for_each - โ Add
Stream::chain - โ Add
stream::repeat - ๐ Relax
&mut selfto&selfinUnboundedSender::send
- ๐ Fix some race conditions in the