copy-channels 1.0.0

A collection of cross-thread channels for copyable types
Documentation
#[cfg(loom)]
pub mod sync {
    pub use loom::sync::*;

    #[inline]
    pub fn spin_loop_hint() {
        atomic::spin_loop_hint();
    }
}

#[cfg(not(loom))]
pub mod sync {
    pub use std::sync::*;

    #[inline]
    pub fn spin_loop_hint() {
        std::hint::spin_loop();
    }
}

#[cfg(all(test, loom))]
pub mod thread {
    pub use loom::thread::*;
}

#[cfg(all(test, not(loom)))]
pub mod thread {
    pub use std::thread::*;
}

// RUSTFLAGS="--cfg=loom" cargo test --release loom_tests