hipthread

Function spawn

Source
pub fn spawn<F, T>(routine: F) -> Result<JoinHandle<T>>
where F: FnOnce() -> T + Send + 'static, T: Send + 'static,
Expand description

创建一个线程.