8000 Mention loop_factory argument in docstring for asyncio.run() (#128288) · python/cpython@0b5f1fa · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b5f1fa

Browse files
authored
Mention loop_factory argument in docstring for asyncio.run() (#128288)
1 parent 08a0728 commit 0b5f1fa

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
@@ -177,6 +177,7 @@ def run(main, *, debug=None, loop_factory=None):
177177
running in the same thread.
178178
179179
If debug is True, the event loop will be run in debug mode.
180+
If loop_factory is passed, it is used for new event loop creation.
180181
181182
This function always creates a new event loop and closes it at the end.
182183
It should be used as a main entry point for asyncio programs, and should

0 commit comments

Comments
 (0)
0