]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mention loop_factory argument in docstring for asyncio.run() (#128288)
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Fri, 27 Dec 2024 13:58:35 +0000 (14:58 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Dec 2024 13:58:35 +0000 (14:58 +0100)
Lib/asyncio/runners.py

index b9adf291d4817f218481a693782b387dcb11bbb2..14397b4ad0c7329e56d4142072330a45529d8e2f 100644 (file)
@@ -177,6 +177,7 @@ def run(main, *, debug=None, loop_factory=None):
     running in the same thread.
 
     If debug is True, the event loop will be run in debug mode.
+    If loop_factory is passed, it is used for new event loop creation.
 
     This function always creates a new event loop and closes it at the end.
     It should be used as a main entry point for asyncio programs, and should