1// runtime-async-std
2#[cfg(feature = "runtime-async-std")]
3pub type Arc<T> = async_std::sync::Arc<T>;
4
5#[cfg(feature = "runtime-async-std")]
6pub type Mutex<T> = async_std::sync::Mutex<T>;
7
8#[cfg(feature = "runtime-async-std")]
9pub use async_std::task::yield_now;
10
11// runtime-tokio
12#[cfg(feature = "runtime-tokio")]
13pub type Arc<T> = std::sync::Arc<T>;
14
15#[cfg(feature = "runtime-tokio")]
16pub type Mutex<T> = tokio::sync::Mutex<T>;
17
18#[cfg(feature = "runtime-tokio")]
19pub use tokio::task::yield_now;