pub trait TaskQueue: Send + Sync + Sized + 'static {
    type Task: Send;
    type Value: Send;

    fn batch_process<'async_trait, const N: usize>(
        assignment: PendingAssignment<'async_trait, Self, N>
    ) -> Pin<Box<dyn Future<Output = CompletionReceipt<Self>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; fn auto_batch<const N: usize>(task: Self::Task) -> AutoBatchedTask<Self, N>
    where
        Self: LocalQueue<N, BufferCell = TaskRef<Self>>
, { ... } }
Expand description

Auto-batched queue where tasks resolve to a value

Required Associated Types§

Required Methods§

Provided Methods§

Implementors§