Function lrs::thread::spawn

Spawns a new thread.

Syntax

fn spawn<F>(f: F) -> Result<(), Errno>
    where F: FnOnce() -> () + Send + 'static,

Arguments

NameDescription
f

The closure that will be run in the new thread.