rendezvous-0.1.0 has been yanked.
Easier Rendezvous Channels
In rust, mpsc::channel can be used as a synchronization
primitive between threads by utilizing the fact that we can block on the receiver's recv()
function until all senders
are dropped.
This crate aims at giving the concept an expressive name and at reducing some classes of race conditions, namely those
where the original sender was not dropped before the call to recv()
.
This version of the crate only supports synchronous code due to the dropping semantics.
cargo add rendezvous
Example usage
use ;
use thread;
use Duration;
use ;
/// A slow worker function. Sleeps, then mutates a value.