PyDocs

Concurrent Execution

concurrent.futures

not WASI

Execute computations asynchronously using threads or processes.
Symbols in concurrent.futures

a

ALL_COMPLETED
The function will return when all futures finish or are cancelled.
as_completed
An iterator over the given futures that yields each as it completes.

b

BrokenExecutor
Raised when an executor has become non-functional after a severe failure.

c

CancelledError
The Future was cancelled.

e

Executor
This is an abstract base class for concrete asynchronous executors.

f

FIRST_COMPLETED
The function will return when any future finishes or is cancelled.
FIRST_EXCEPTION
The function will return when any future finishes by raising an exception.
Future
Represents the result of an asynchronous computation.

i

interpreter.BrokenInterpreterPool
Raised when a worker thread in an InterpreterPoolExecutor failed initializing.
InterpreterPoolExecutor
A ThreadPoolExecutor subclass that executes calls asynchronously using a pool of at most max_workers threads.
InvalidStateError
The operation is not allowed in this state.

p

process.BrokenProcessPool
Raised when a process in a ProcessPoolExecutor terminated abruptly while a future was in the running state.
ProcessPoolExecutor
An Executor subclass that executes calls asynchronously using a pool of at most max_workers processes.

t

thread.BrokenThreadPool
Raised when a worker thread in a ThreadPoolExecutor failed initializing.
ThreadPoolExecutor
An Executor subclass that uses a pool of at most max_workers threads to execute calls asynchronously.
TimeoutError
Timeout expired.

w

wait
Wait for the futures in the given sequence to complete.