7.2.2.9. PoolExecutor¶
-
class
PoolExecutor
(thread_executor, process_executor=None, parallel=None)[source]¶ General PoolExecutor to dispatch asynchronously and in parallel.
Methods
__init__
param thread_executor: process
process_funcs
shutdown
thread
-
__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.
-