Skip to main content

boxed_loader

Function boxed_loader 

Source
pub fn boxed_loader<I, O, F: Future<Output = O> + 'static>(
    load: impl Fn(I, CancellationToken) -> F + 'static,
) -> Rc<Loader<I, O>>
Expand description

Erase a loader’s future type, so one loader can serve many operations.