Function dbcrossbarlib::tokio_glue::spawn_blocking[][src]

pub async fn spawn_blocking<F, T>(f: F) -> Result<T> where
    F: FnOnce() -> Result<T> + Send + 'static,
    T: Send + 'static, 
Expand description

Run a synchronous function f in a background worker thread and return its value.