From: bors Date: Tue, 25 Mar 2014 04:56:50 +0000 (-0700) Subject: auto merge of #12991 : alexcrichton/rust/sync-chan, r=brson X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=1e6e98c0c2bd6b736fc6bef9bc1fb8e34d24e488;p=rust.git auto merge of #12991 : alexcrichton/rust/sync-chan, r=brson 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 --- 1e6e98c0c2bd6b736fc6bef9bc1fb8e34d24e488