pub fn spawn<F, T>(f: F) -> StoppableHandle<T>
Expand description
Spawn a stoppable thread
Works similar to like std::thread::spawn
, except that a
&SimpleAtomicBool
is passed into f
.
pub fn spawn<F, T>(f: F) -> StoppableHandle<T>
Spawn a stoppable thread
Works similar to like std::thread::spawn
, except that a
&SimpleAtomicBool
is passed into f
.