1 2 3 4 5 6 7 8 9 10 11 12 13
use cfg_if::cfg_if; cfg_if! { if #[cfg(target_feature = "atomics")] { mod wait_async_polyfill; mod multithread; pub(crate) use multithread::*; } else { mod singlethread; pub(crate) use singlethread::*; } }