def thread_map(map_func: Callable, map_iter: Iterable[Any], **tqdm_kwargs):
    tqdm_kwargs = {
        **{
            "disable": getenv(GLOBAL_DISABLE_PROGRESS)
        },
        **tqdm_kwargs
    }
    # pylint: disable=protected-access
    return concurrent._executor_map(_ThreadExecutor, map_func, map_iter,
                                    **tqdm_kwargs)
Example #2
0
def thread_map(map_func: Callable, map_iter: Iterable[Any], **tqdm_kwargs):
    return concurrent._executor_map(_ThreadExecutor, map_func, map_iter,
                                    **tqdm_kwargs)
Example #3
0
def process_map(map_func: Callable, map_iter: Iterable[Any], **tqdm_kwargs):
    return concurrent._executor_map(_ProcessExecutor, map_func, map_iter,
                                    **tqdm_kwargs)