Skip to main content

try_process_files_batch

Function try_process_files_batch 

Source
pub fn try_process_files_batch<P, F, R, E>(
    paths: &[P],
    processor: F,
) -> Vec<Result<R, E>>
where P: AsRef<Path> + Sync, F: Fn(&Path) -> Result<R, E> + Sync + Send, R: Send, E: Send,
Expand description

Try to process multiple files in batch, collecting errors

This version collects both successes and errors, allowing partial batch processing to succeed even if some files fail.

ยงReturns

A vector of Result<R, E> where each element corresponds to the processing result for the file at the same index in the input slice.