docs.rs failed to build rendezvous-0.2.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
rendezvous-0.3.0
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.