Interface for the parallelism context needed by the TraitsExecutor
Interface for the parallelism context needed by the TraitsExecutor.
A class implementing this interface provides a worker pool, message router and other concurrency primitives suitable for a particular form of parallelism, for example multithreading or multiprocessing.
Do any cleanup necessary before disposal of the context.
True if this context is closed, else False.
Return a shareable event suitable for this context.
Return a message router suitable for use in this context.
Provide a worker pool suitable for this context.
int, optional) – Maximum number of workers in the worker pool. If not given, it’s up to the worker pool to choose a suitable number of workers, perhaps dependent on the number of logical cores present on the target machine.
- Return type