Skip to main content

shard_queues

Function shard_queues 

Source
pub fn shard_queues(
    num_shards: usize,
    capacity: usize,
) -> (ShardQueues, Vec<Receiver<EncodedChunk>>)
Expand description

Build the queues: one bounded channel per shard. Returns the shared sender handle and the per-shard receivers for the workers.