diff options
author | Thomas Grainger <tagrain@gmail.com> | 2023-10-12 07:13:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-12 07:13:57 -0700 |
commit | 8c6c14b91bf95e04018151c53bce6e27e0e22447 (patch) | |
tree | 10032d3467d24b4ef7d490173b10ae3bc9f28b5e /Lib/asyncio/unix_events.py | |
parent | 1e3460d9faaffb35b3c6175c666b1f45aea2c1d8 (diff) | |
download | cpython-8c6c14b91bf95e04018151c53bce6e27e0e22447.tar.gz cpython-8c6c14b91bf95e04018151c53bce6e27e0e22447.zip |
gh-94597: Add asyncio.EventLoop (#110723)
This is needed to pave the way for deprecating and eventually killing the event loop policy system (which is over-engineered and rarely used).
Diffstat (limited to 'Lib/asyncio/unix_events.py')
-rw-r--r-- | Lib/asyncio/unix_events.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index 28cef964deb..65f0923264d 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -32,6 +32,7 @@ __all__ = ( 'FastChildWatcher', 'PidfdChildWatcher', 'MultiLoopChildWatcher', 'ThreadedChildWatcher', 'DefaultEventLoopPolicy', + 'EventLoop', ) @@ -1510,3 +1511,4 @@ class _UnixDefaultEventLoopPolicy(events.BaseDefaultEventLoopPolicy): SelectorEventLoop = _UnixSelectorEventLoop DefaultEventLoopPolicy = _UnixDefaultEventLoopPolicy +EventLoop = SelectorEventLoop |