Expand description
Request-local batching of cache initializers.
Structs§
- Batch
Sender - Submits backend requests from the initializers elected by the cache.
Only the active initializer calls
Self::request. A waiter enqueues nothing until it takes over a cancelled initializer.
Functions§
- load
- Drives one caller’s per-key loads and batches requests from their active initializers.
Each dispatch receives ready keys and their corresponding reply senders in the same order.
Completed loads are delivered to
on_loadedin completion order. An error or cancellation drops the remaining loads and any in-progress dispatch.