The timeoutpool tools
API
- class timeoutpool.TimeoutPool(n_jobs=1, timeout=-1)[source]
A pool object being able to run n_jobs workers each subject to time-out to process a list of tasks
- __init__(n_jobs=1, timeout=-1)[source]
The constructor of the object
- Parameters
n_jobs (int) – the number of parallel jobs
timeout (float/None) – the timeout time in seconds, None/negative means no time-out