◐ Shell
clean mode source ↗

gh-81554: Add add_reader support to ProactorEventLoop by minrk · Pull Request #141834 · python/cpython

added 4 commits

November 21, 2025 13:46
v6.5.1
License: Apache-2.0
Copyright (c) 2025 The Tornado Authors

unmodified from original, so we can track changes
via background SelectorThread, imported from tornado

StanFromIreland

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>

vstinner

matches tornado behavior

tornado handles this in IOLoop, so we need to include it
- remove some older Python compatibility, since this is in the stdlib now
- resolve race between selector thread call soon and EventLoop.close
rely on private threading._register_atexit to run cleanup prior to thread join
based on confusion in feedback

vstinner

vstinner

@minrk

vstinner

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>

vstinner