Waitable
A synchronized (atomic) value container implementing the Mutex+Condvar pattern for efficient blocking waits
Usage
use Arc;
use Waitable;
let w = new;
println!;
let join_handle = ;
println!;
sleep;
println!;
w.set;
join_handle.join.unwrap;
println!;
Spawning thread...
Waiting to set...
Thread waiting...
Setting...
Thread done waiting
All done