Struct spawner::Spawner [] [src]

pub struct Spawner { /* fields omitted */ }

A wrapper for thread::spawn that optionally auto-joins threads.

Methods

impl Spawner
[src]

Create a new Spawner object

Spawn a thread that will be auto-joined when the Spawner is dropped

The thread function should be a move closure returning ()

Spawn a thread that won't be auto-joined

The thread function should be a move closure

Trait Implementations

impl Drop for Spawner
[src]

A method called when the value goes out of scope. Read more