Runs a function concurrently over an iterable of items.

Returns:

A list of results corresponding to the input items, in the exact original order.

Methods

run_concurrently

run_concurrently(func: Callable, func: R], items: Iterable, max_workers: Optional) -> List[R]

Runs a function concurrently over an iterable of items.

Returns:

A list of results corresponding to the input items, in the exact original order.

ParameterTypeDescription
funcCallableThe function to apply to each item.
funcR]The function to apply to each item.
itemsIterableThe iterable of items to process.
max_workersOptionalThe configured worker count, or None to resolve via

Generated with Flude

Copyright © 2026