Trait deque_loader::batch::BatchLoader[][src]

pub trait BatchLoader: Sized + Send + Sync + 'static {
    type Key: Key;
    type Value: Send + Sync + Clone + 'static;
    type Error: Send + Sync + Clone + 'static;

    const CORES_PER_WORKER_GROUP: usize;

    fn load<'async_trait>(
        keys: Vec<Self::Key>
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<Self::Key, Arc<Self::Value>>, Self::Error>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }
Expand description

Simplified TaskHandler interface

Associated Types

Associated Constants

Required methods

Implementors