]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #12991 : alexcrichton/rust/sync-chan, r=brson
authorbors <bors@rust-lang.org>
Tue, 25 Mar 2014 04:56:50 +0000 (21:56 -0700)
committerbors <bors@rust-lang.org>
Tue, 25 Mar 2014 04:56:50 +0000 (21:56 -0700)
This commit contains an implementation of synchronous, bounded channels for
Rust. This is an implementation of the proposal made last January [1]. These
channels are built on mutexes, and currently focus on a working implementation
rather than speed. Receivers for sync channels have select() implemented for
them, but there is currently no implementation of select() for sync senders.

Rust will continue to provide both synchronous and asynchronous channels as part
of the standard distribution, there is no intent to remove asynchronous
channels. This flavor of channels is meant to provide an alternative to
asynchronous channels because like green tasks, asynchronous channels are not
appropriate for all situations.

[1] - https://mail.mozilla.org/pipermail/rust-dev/2014-January/007924.html


Trivial merge