Trait bp3d_threads::ThreadManager[][src]

pub trait ThreadManager<'env> {
    type Handle: Join;
    fn spawn_thread<F: FnOnce() + Send + 'env>(&self, func: F) -> Self::Handle;
}
Expand description

Trait to handle spawning generic threads.

Associated Types

The type of thread handle (must have a join() function).

Required methods

Spawns a thread using this manager.

Arguments
  • func: the function to run in the thread.

returns: Self::Handle

Implementors