mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-32415: Add asyncio.Task.get_loop() and Future.get_loop() (#4992)
This commit is contained in:
parent
558aa30f79
commit
ca9b36cd1a
9 changed files with 152 additions and 76 deletions
|
@ -145,7 +145,7 @@ def _run_until_complete_cb(fut):
|
|||
# Issue #22429: run_forever() already finished, no need to
|
||||
# stop it.
|
||||
return
|
||||
fut._loop.stop()
|
||||
futures._get_loop(fut).stop()
|
||||
|
||||
|
||||
class Server(events.AbstractServer):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue