Skip to content

Commit

Permalink
Mention loop_factory argument in docstring for asyncio.run() (pythonG…
Browse files Browse the repository at this point in the history
…H-128288)

(cherry picked from commit 0b5f1fa)

Co-authored-by: Andrew Svetlov <[email protected]>
  • Loading branch information
asvetlov authored and miss-islington committed Dec 27, 2024
1 parent 82dbfbf commit 0f76814
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 @@ -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
Expand Down

0 comments on commit 0f76814

Please sign in to comment.