Function web_thread::spawn

source ·
pub fn spawn<F, T>(f: F) -> JoinHandle<T>
where F: FnOnce() -> T + Send + 'static, T: Send + 'static,
Expand description

See std::thread::spawn().

§Panics

If the main thread does not support spawning threads, see web::has_spawn_support().