Top "Concurrent.futures" questions

concurrent.

How does ThreadPoolExecutor().map differ from ThreadPoolExecutor().submit?

I was just very confused by some code that I wrote. I was surprised to discover that: with concurrent.futures.…

python multithreading python-3.x python-multithreading concurrent.futures
How do you kill Futures once they have started?

I am using the new concurrent.futures module (which also has a Python 2 backport) to do some simple multithreaded I/…

python multithreading concurrent.futures
ProcessPoolExecutor from concurrent.futures way slower than multiprocessing.Pool

I was experimenting with the new shiny concurrent.futures module introduced in Python 3.2, and I've noticed that, almost with identical …

python concurrency multiprocessing future concurrent.futures
How to pass a function with more than one argument to python concurrent.futures.ProcessPoolExecutor.map()?

I would like concurrent.futures.ProcessPoolExecutor.map() to call a function consisting of 2 or more arguments. In the example below, …

python python-3.x lambda concurrency concurrent.futures
Use tqdm with concurrent.futures?

I have a multithreaded function that I would like a status bar for using tqdm. Is there an easy way …

python concurrent.futures tqdm
Number of max_workers when using ThreadPoolExecutor from concurrent.futures?

What are the factors to consider when deciding what to set max_workers to in ThreadPoolExecutor from concurrent.futures? As …

python python-3.x concurrent.futures
Python parallel execution with selenium

I'm confused about parallel execution in python using selenium. There seems to be a few ways to go about it, …

python selenium parallel-processing concurrent.futures
Python: concurrent.futures How to make it cancelable?

Python concurrent.futures and ProcessPoolExecutor provide a neat interface to schedule and monitor tasks. Futures even provide a .cancel() method: …

python multiprocess concurrent.futures
Getting original line number for exception in concurrent.futures

Example of using concurrent.futures (backport for 2.7): import concurrent.futures # line 01 def f(x): # line 02 return x * x # line 03 data = [1, 2, 3, …

python python-2.7 concurrency concurrent.futures
How to use queue with concurrent future ThreadPoolExecutor in python 3?

I am using simple threading modules to do concurrent jobs. Now I would like to take advantages of concurrent futures …

python multithreading python-3.x queue concurrent.futures