[][src]Function my_iot::threading::spawn

pub fn spawn<N, F, T>(name: N, f: F) -> Result<JoinHandle<T>> where
    N: Into<String>,
    F: FnOnce() -> T,
    F: Send + 'static,
    T: Send + 'static, 

Convenience function to spawn a named thread.