This crate provides an API identical to
JoinHandle::join is an
let handle = crate::spawn(|| 5usize); assert_eq!(handle.join().await.map_err(drop), Ok(5));
Thread factory, which can be used in order to configure the properties of a new thread.
An owned permission to join on a thread (block on its termination).
Spawns a new thread, returning a