Function tauri::async_runtime::spawn_blocking
source · [−]pub fn spawn_blocking<F, R>(func: F) -> JoinHandle<R>ⓘNotable traits for JoinHandle<T>impl<T> Future for JoinHandle<T> type Output = Result<T>;
where
F: FnOnce() -> R + Send + 'static,
R: Send + 'static,
Expand description
Runs the provided function on an executor dedicated to blocking operations.