]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-96827: Don't touch closed loops from executor threads (#96837)
authorGuido van Rossum <guido@python.org>
Fri, 30 Sep 2022 19:55:40 +0000 (12:55 -0700)
committerGitHub <noreply@github.com>
Fri, 30 Sep 2022 19:55:40 +0000 (12:55 -0700)
commite9d63760fea8748638f6e495b5b07bd1805c9591
tree26a42e0867b0a7cdc67b39e4f1b44021d95ef36f
parentb05dd796492160c37c9e15e3882f699f411b3461
GH-96827: Don't touch closed loops from executor threads (#96837)

* When chaining futures, skip callback if loop closed.
* When shutting down an executor, don't wake a closed loop.
Lib/asyncio/base_events.py
Lib/asyncio/futures.py
Misc/NEWS.d/next/Library/2022-09-30-15-56-20.gh-issue-96827.lzy1iw.rst [new file with mode: 0644]