walk_dir_concurrently_with_error_handler

Function walk_dir_concurrently_with_error_handler 

Source
pub async fn walk_dir_concurrently_with_error_handler<EntryFunc, ErrorFunc, EntryFut, E>(
    path: impl AsRef<Path>,
    count: usize,
    entry_function: EntryFunc,
    error_function: ErrorFunc,
) -> Result<Result<(), E>>
where EntryFunc: Fn(DirEntry) -> EntryFut + Send + Sync + 'static, ErrorFunc: Fn(E) -> Result<(), E>, EntryFut: Future<Output = Result<(), E>> + Send + Sync, E: Error + From<Error> + Send + Sync + 'static,
Expand description

Walk directories concurrently.

If an error occurs you can handle it through error_function.

If an error occurs in error_function it’ll propagate the main function.