]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Mention loop_factory argument in docstring for asyncio.run() (GH-128288) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 27 Dec 2024 14:22:25 +0000 (15:22 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Dec 2024 14:22:25 +0000 (14:22 +0000)
Mention loop_factory argument in docstring for asyncio.run() (GH-128288)
(cherry picked from commit 0b5f1fae573a2c658eb000433ad7b87e9c40c697)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Lib/asyncio/runners.py

index 1b89236599aad7052f7e13b2e826a5d1d13875de..102ae78021b22ff1156cfa4c4301b6af30870308 100644 (file)
@@ -168,6 +168,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