geo3d.utils.multiprocessing¶
Functions¶
|
Run a target function in parallel over a loop using the built-in multiprocessing package. |
Module Contents¶
- geo3d.utils.multiprocessing.run(target: Callable, loop: list[Any], n_jobs: int) List[Any] | None¶
Run a target function in parallel over a loop using the built-in multiprocessing package.
- Parameters:
target (Callable) – The function to call.
loop (list) – The list of which to loop.
n_jobs (int) – The number of workers.
- Returns:
The list of results if the target returns values, otherwise None.
- Return type:
(Optional)