Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 287 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 287 Bytes

async-thread

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));