]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-96827: Don't touch closed loops from executor threads (GH-96837)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 30 Sep 2022 20:25:06 +0000 (13:25 -0700)
committerGitHub <noreply@github.com>
Fri, 30 Sep 2022 20:25:06 +0000 (13:25 -0700)
commita5c503f296a104d8b5b2e917a2f1ef71be888e1b
tree436ef6997f69fd020d1f49b72f09a7318ca5b748
parent6d7dbcc0b365c9f227a4c299211c068b3da54a90
GH-96827: Don't touch closed loops from executor threads (GH-96837)

* When chaining futures, skip callback if loop closed.
* When shutting down an executor, don't wake a closed loop.
(cherry picked from commit e9d63760fea8748638f6e495b5b07bd1805c9591)

Co-authored-by: Guido van Rossum <guido@python.org>
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]