async-thread
This crate provides an API identical to std::thread. However, JoinHandle::join is an async fn.
let handle = cratespawn;
assert_eq!;
This crate provides an API identical to std::thread. However, JoinHandle::join is an async fn.
let handle = crate::spawn(|| 5usize);
assert_eq!(handle.join().await.map_err(drop), Ok(5));