new_barrier

Function new_barrier 

Source
pub fn new_barrier<T>() -> (Barrier<T>, BarrierOpener<T>)
where T: Clone,
Expand description

The Barrier is something that can be opened once from one side, and is thereafter permanently closed. It can contain a value.