diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2022-03-25 22:26:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 22:26:23 (GMT) |
commit | bad6ffaa64eecd33f4320ca31b1201b25cd8fc91 (patch) | |
tree | 28413f729dde37eb2d912a881efdaae5eab88744 /Doc | |
parent | d03acd7270d66ddb8e987f9743405147ecc15087 (diff) | |
download | cpython-bad6ffaa64eecd33f4320ca31b1201b25cd8fc91.zip cpython-bad6ffaa64eecd33f4320ca31b1201b25cd8fc91.tar.gz cpython-bad6ffaa64eecd33f4320ca31b1201b25cd8fc91.tar.bz2 |
bpo-47062: Rename factory argument to loop_factory (GH-32113)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-runner.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/asyncio-runner.rst b/Doc/library/asyncio-runner.rst index 2f4de9e..31becf1 100644 --- a/Doc/library/asyncio-runner.rst +++ b/Doc/library/asyncio-runner.rst @@ -62,7 +62,7 @@ Running an asyncio Program Runner context manager ====================== -.. class:: Runner(*, debug=None, factory=None) +.. class:: Runner(*, debug=None, loop_factory=None) A context manager that simplifies *multiple* async function calls in the same context. @@ -74,7 +74,7 @@ Runner context manager debug mode explicitly. ``None`` is used to respect the global :ref:`asyncio-debug-mode` settings. - *factory* could be used for overriding the loop creation. + *loop_factory* could be used for overriding the loop creation. :func:`asyncio.new_event_loop` is used if ``None``. Basically, :func:`asyncio.run()` example can be rewritten with the runner usage:: |