Skip to main content

off_worker

Function off_worker 

Source
pub async fn off_worker<T: Default + Send + 'static>(
    f: impl FnOnce() -> T + Send + 'static,
) -> T
Expand description

Run blocking work (store reads) off the async workers. A panic in f gives T::default(), as no result at all would for a best-effort reader.