pub fn thread<F, T>(f: F) -> NativeThread<T>
where
    F: FnOnce() -> anyhow::Result<T> + Send + 'static,
    T: Send + 'static,
{
    NativeThread(Some(std::thread::spawn(f)))
}
/// Executes a function to completion on a native OS thread
Executes a function to completion on a native OS thread
Executes a function to completion on a native OS thread
pub fn thread<F, T>(f: F) -> NativeThread<T>
where
    F: FnOnce() -> anyhow::Result<T> + Send + 'static,
    T: Send + 'static,
{
    NativeThread(Some(std::thread::spawn(f)))
}
pub fn thread < F , T > ( f : F ) -> NativeThread < T > where F : FnOnce ( ) -> anyhow :: Result < T > + Send + ' static , T : Send + ' static , { NativeThread ( Some ( std :: thread :: spawn ( f ) ) ) }
Executes a function to completion on a native OS thread
Executes a function to completion on a native OS thread
f
F