Skip to content

Commit

Permalink
Mention loop_factory argument in docstring for asyncio.run() (#128288)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov authored Dec 27, 2024
1 parent 08a0728 commit 0b5f1fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/asyncio/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b5f1fa

Please sign in to comment.