Skip to content

Commit aea2e03

Browse files
[3.13] Mention loop_factory argument in docstring for asyncio.run() (GH-128288) (#128291)
Mention loop_factory argument in docstring for asyncio.run() (GH-128288) (cherry picked from commit 0b5f1fa) Co-authored-by: Andrew Svetlov <[email protected]>
1 parent bad6b7b commit aea2e03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/asyncio/runners.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def run(main, *, debug=None, loop_factory=None):
168168
running in the same thread.
169169
170170
If debug is True, the event loop will be run in debug mode.
171+
If loop_factory is passed, it is used for new event loop creation.
171172
172173
This function always creates a new event loop and closes it at the end.
173174
It should be used as a main entry point for asyncio programs, and should

0 commit comments

Comments
 (0)