List of functions in the ude.concurrency namespace.

Entity NameDescription
resolve_worker_countResolves the number of worker threads to use.
run_concurrentlyRuns a function concurrently over an iterable of items.

Generated with Flude

Copyright © 2026

Directory & Entity Index

Entity NameSummary / Description
resolve_worker_count function

Resolves the number of worker threads to use.

If a configured value is provided, it is returned. Otherwise, it defaults to os.cpu_count(), with a floor of 1 if os.cpu_count() is None.

Returns:

The resolved number of worker threads (>= 1).

Methods

resolve_worker_count

resolve_worker_count(configured: Optional) -> int

Resolves the number of worker threads to use.

If a configured value is provided, it is returned. Otherwise, it defaults to os.cpu_count(), with a floor of 1 if os.cpu_count() is None.

run_concurrently function

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