Function run_thread

Source
pub fn run_thread<F, T>(
    name: impl Into<String>,
    data: &T,
    entrypoint: F,
) -> Result<JoinHandle<()>, Error>
where F: Fn(T) -> Result<(), Error> + Send + Copy + 'static, T: Clone + Send + Sync + 'static,