Function batch_process

Source
pub fn batch_process<T, U, F>(
    s: RS2Stream<T>,
    batch_size: usize,
    processor: F,
) -> RS2Stream<U>
where F: FnMut(Vec<T>) -> Vec<U> + Send + 'static, T: Send + 'static, U: Send + 'static,
Expand description

Batch processing for better throughput