7.2.2.1.2. PoolExecutor¶
-
class
PoolExecutor
(thread_executor, process_executor=None, parallel=None)[source]¶ General PoolExecutor to dispatch asynchronously and in parallel.
Methods
__init__
param thread_executor: add_future
get_futures
process
process_funcs
shutdown
thread
wait
-
__init__
(thread_executor, process_executor=None, parallel=None)[source]¶ Parameters: - thread_executor (ThreadExecutor) – Thread pool executor to dispatch asynchronously.
- process_executor (ProcessExecutor | ProcessPoolExecutor) – Process pool executor to execute in parallel the functions calls.
- parallel (bool) – Run _process_funcs in parallel.
-