4 ms·
For python 3 there's also concurrent.futures: from concurrent.futures import ThreadPoolExecutor ... with ThreadPoolExecutor(max_workers=4) as execu
by towelguy 12y ago
For python 3 there's also concurrent.futures:
from concurrent.futures import ThreadPoolExecutor
...
with ThreadPoolExecutor(max_workers=4) as executor:
executor.map(create_thumbnail, images)