summaryrefslogtreecommitdiffstats
path: root/src/util.rs
blob: d792b9152e85589c87128cc985b247b8343aee89 (plain) (blame)
1
2
3
4
5
pub type Mutex<T> = async_std::sync::Arc<async_std::sync::Mutex<T>>;

pub fn mutex<T>(t: T) -> Mutex<T> {
    async_std::sync::Arc::new(async_std::sync::Mutex::new(t))
}