latches 0.2.0

A downward counter (CountDownLatch) which can be used to synchronize threads or coordinate tasks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
macro_rules! cfg_impl {
    ($f:meta => $m:ident $(,)?) => {
        #[cfg(all(feature = "task", $f))]
        pub(crate) use $m::Mutex;

        #[cfg(all(feature = "sync", $f))]
        pub(crate) use $m::EmptyCondvar;

        #[cfg($f)]
        mod $m;
    };
}

cfg_impl!(feature = "std" => stds);
cfg_impl!(all(not(feature = "std"), feature = "atomic-wait") => futexes);
cfg_impl!(all(not(feature = "std"), not(feature = "atomic-wait")) => spins);