pub fn batched<F: Future>(fut: F) -> Batched<F> {
    Batched {
        fut,
        batch_futures: Slab::new(),
        ctx: Rc::new(RefCell::new(BatchContext {
            accumulating: HashMap::new(),
            postpone_loading: 0,
            user_ctx: HashMap::new(),
        })),
    }
}
/// Allows using batch loaders from within the passed future.
Allows using batch loaders from within the passed future.
Allows using batch loaders from within the passed future .
pub fn batched<F: Future>(fut: F) -> Batched<F> {
    Batched {
        fut,
        batch_futures: Slab::new(),
        ctx: Rc::new(RefCell::new(BatchContext {
            accumulating: HashMap::new(),
            postpone_loading: 0,
            user_ctx: HashMap::new(),
        })),
    }
}
pub fn batched < F : Future > ( fut : F ) -> Batched < F > { Batched { fut , batch_futures : Slab :: new ( ) , ctx : Rc :: new ( RefCell :: new ( BatchContext { accumulating : HashMap :: new ( ) , postpone_loading : 0 , user_ctx : HashMap :: new ( ) , } ) ) , } }
Allows using batch loaders from within the passed future.
Allows using batch loaders from within the passed future .
fut
F
fut
F