diff options
author | Tony Solomonik <tony.solomonik@gmail.com> | 2020-07-09 17:38:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 17:38:46 (GMT) |
commit | 0b6169e391ce6468aad711f08ffb829362293ad5 (patch) | |
tree | e4132126562959cb83310dee12320adf564c586a /Misc/NEWS.d/next | |
parent | 1e66f7e102b64da5a6d69b135cf7d82708aca231 (diff) | |
download | cpython-0b6169e391ce6468aad711f08ffb829362293ad5.zip cpython-0b6169e391ce6468aad711f08ffb829362293ad5.tar.gz cpython-0b6169e391ce6468aad711f08ffb829362293ad5.tar.bz2 |
bpo-41247: asyncio.set_running_loop() cache running loop holder (#21406)
The running loop holder cache variable was always set to NULL when
calling set_running_loop.
Now set_running_loop saves the newly created running loop holder in the
cache variable for faster access in get_running_loop.
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2020-07-08-22-03-54.bpo-41247.PndYIk.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-07-08-22-03-54.bpo-41247.PndYIk.rst b/Misc/NEWS.d/next/Core and Builtins/2020-07-08-22-03-54.bpo-41247.PndYIk.rst new file mode 100644 index 0000000..08699b6 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2020-07-08-22-03-54.bpo-41247.PndYIk.rst @@ -0,0 +1,2 @@ +Always cache the running loop holder when running +``asyncio.set_running_loop``. |