gh-121333: Clarify what is the default executor for asyncio.run_in_executor (GH-121335)
(cherry picked from commit
facf9862da0cf9331550747197800d682cd371fb)
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
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::