Issue 27978: concurrent.futures.threading: Add a timeout to Executor shutdown() method (original) (raw)
Issue27978
Created on 2016-09-06 18:49 by Patrik Dufresne, last changed 2022-04-11 14:58 by admin.
| Messages (1) | ||
|---|---|---|
| msg274599 - (view) | Author: Patrik Dufresne (Patrik Dufresne) | Date: 2016-09-06 18:49 |
| Would be nice to add a new parameter to timeout if the shutdown take too long. def shutdown(self, wait=True, timeout=None): with self._shutdown_lock: self._shutdown = True self._work_queue.put(None) if wait: for t in self._threads: start = time.time() t.join(timeout) timeout = timeout + start - time.time() |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:35 | admin | set | github: 72165 |
| 2021-09-26 21:19:09 | vstinner | set | title: [threading] Executor#shutdown with timeout -> concurrent.futures.threading: Add a timeout to Executor shutdown() method |
| 2019-04-28 09:08:31 | cheryl.sabella | set | nosy: + pitroutitle: Executor#shutdown with timeout -> [threading] Executor#shutdown with timeoutversions: + Python 3.8, - Python 3.5 |
| 2016-09-06 18:49:39 | Patrik Dufresne | create |