8.2.2.1.4. PoolExecutor¶
- class PoolExecutor(thread_executor, process_executor=None, parallel=None)[source]¶
General PoolExecutor to dispatch asynchronously and in parallel.
Methods
__delattr__Implement delattr(self, name).
__dir__Default dir() implementation.
__eq__Return self==value.
__format__Default object formatter.
__ge__Return self>=value.
__getattribute__Return getattr(self, name).
__getstate__Helper for pickle.
__gt__Return self>value.
__hash__Return hash(self).
__init_subclass__This method is called when a class is subclassed.
__le__Return self<=value.
__lt__Return self<value.
__ne__Return self!=value.
__new__Helper for pickle.
__reduce_ex__Helper for pickle.
__repr__Return repr(self).
__setattr__Implement setattr(self, name, value).
__sizeof__Size of object in memory, in bytes.
__str__Return str(self).
__subclasshook__Abstract classes can override this to customize issubclass().
- __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.
Attributes
list of weak references to the object
- __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.
- __annotations__ = {}¶
- __dict__ = mappingproxy({'__module__': 'schedula.utils.asy.executors', '__doc__': 'General PoolExecutor to dispatch asynchronously and in parallel.', '__init__': <function PoolExecutor.__init__>, '__reduce__': <function PoolExecutor.__reduce__>, 'add_future': <function PoolExecutor.add_future>, 'get_futures': <function PoolExecutor.get_futures>, 'thread': <function PoolExecutor.thread>, 'process_funcs': <function PoolExecutor.process_funcs>, 'process': <function PoolExecutor.process>, 'wait': <function PoolExecutor.wait>, 'shutdown': <function PoolExecutor.shutdown>, '__dict__': <attribute '__dict__' of 'PoolExecutor' objects>, '__weakref__': <attribute '__weakref__' of 'PoolExecutor' objects>, '__annotations__': {}})¶
- __doc__ = 'General PoolExecutor to dispatch asynchronously and in parallel.'¶
- __module__ = 'schedula.utils.asy.executors'¶
- __weakref__¶
list of weak references to the object