mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Mention loop_factory argument in docstring for asyncio.run() (#128288)
This commit is contained in:
parent
08a0728d6c
commit
0b5f1fae57
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue