https://github.com/python/cpython/commit/facf9862da0cf9331550747197800d682cd371fb commit: facf9862da0cf9331550747197800d682cd371fb branch: main author: AN Long <a...@users.noreply.github.com> committer: kumaraditya303 <kumaradi...@python.org> date: 2024-07-09T14:52:07+05:30 summary:
gh-121333: Clarify what is the default executor for asyncio.run_in_executor (#121335) Co-authored-by: Kumar Aditya <kumaradi...@python.org> files: M Doc/library/asyncio-eventloop.rst diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index 1d79f78e8e1b67..70bdd154d6c406 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1262,6 +1262,9 @@ Executing code in thread or process pools The *executor* argument should be an :class:`concurrent.futures.Executor` instance. The default executor is used if *executor* is ``None``. + The default executor can be set by :meth:`loop.set_default_executor`, + otherwise, a :class:`concurrent.futures.ThreadPoolExecutor` will be + lazy-initialized and used by :func:`run_in_executor` if needed. Example:: _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com