mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-30966: concurrent.futures.Process.shutdown() closes queue (GH-19738)
Process.shutdown(wait=True) of concurrent.futures now closes explicitly the result queue.
This commit is contained in:
parent
b94dbd7ac3
commit
1a275013d1
2 changed files with 4 additions and 0 deletions
|
@ -728,6 +728,8 @@ class ProcessPoolExecutor(_base.Executor):
|
|||
# objects that use file descriptors.
|
||||
self._executor_manager_thread = None
|
||||
self._call_queue = None
|
||||
if self._result_queue is not None and wait:
|
||||
self._result_queue.close()
|
||||
self._result_queue = None
|
||||
self._processes = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue