Method lrs::thread::Builder::spawn

Spawns a new thread.

Syntax

impl Builder {
    fn spawn<F>(self, f: F) -> Result<(), Errno>
        where F: FnOnce() -> () + Send + 'static,
}

Arguments

NameDescription
f

The closure that will be run in the new thread.