[New-bugs-announce] [issue27978] Executor#shutdown with timeout

Patrik Dufresne report at bugs.python.org
Tue Sep 6 14:49:39 EDT 2016


New submission from Patrik Dufresne:

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()

----------
components: Library (Lib)
messages: 274599
nosy: Patrik Dufresne
priority: normal
severity: normal
status: open
title: Executor#shutdown with timeout
type: enhancement
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27978>
_______________________________________


More information about the New-bugs-announce mailing list