async-thread

Crates.ioasync-thread
lib.rsasync-thread
version0.1.2
sourcesrc
created_at2019-12-13 17:03:23.170411
updated_at2019-12-13 17:46:10.919032
descriptionFutures version of std::thread
homepagehttps://github.com/leo60228/async-thread
repositoryhttps://github.com/leo60228/async-thread
max_upload_size
id189090
size14,470
leo60228 (leo60228)

documentation

README

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));
Commit count: 5

cargo fmt