python concurrent futures with tqdm code example
Example: python use tqdm with concurrent futures
import concurrent.futures
import tqdm
work_list = list(range(32768))
def calc(x):
return x ** x
with concurrent.futures.ProcessPoolExecutor() as executor:
list(tqdm.tqdm(executor.map(calc, work_list), total=len(work_list)))