Function relm4::spawn_blocking

source ·
pub fn spawn_blocking<F, R>(func: F) -> JoinHandle<R> where
    F: FnOnce() -> R + Send + 'static,
    R: Send + 'static,
Expand description

Spawns a blocking task in a background thread pool.