Skip to main content

off_worker

Function off_worker 

Source
pub(crate) async fn off_worker<T>(f: impl FnOnce() -> T + Send + 'static) -> T
where T: Default + Send + 'static,
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.