Skip to main content

run

Function run 

Source
pub async fn run<F, R>(label: &'static str, f: F) -> Option<R>
where F: FnOnce() -> R + Send + 'static, R: Send + 'static,
Expand description

Runs f on the blocking thread pool. Returns None (logging via label) if f panics.