Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c62b52

Browse files
committed
Reflect parameter name change in the doc
1 parent 89719e1 commit 1c62b52

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/asyncio-eventloop.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,14 +582,14 @@ Call a function in an :class:`~concurrent.futures.Executor` (pool of threads or
582582
pool of processes). By default, an event loop uses a thread pool executor
583583
(:class:`~concurrent.futures.ThreadPoolExecutor`).
584584

585-
.. coroutinemethod:: BaseEventLoop.run_in_executor(executor, callback, \*args)
585+
.. coroutinemethod:: BaseEventLoop.run_in_executor(executor, func, \*args)
586586

587-
Arrange for a callback to be called in the specified executor.
587+
Arrange for a *func* to be called in the specified executor.
588588

589589
The *executor* argument should be an :class:`~concurrent.futures.Executor`
590590
instance. The default executor is used if *executor* is ``None``.
591591

592-
:ref:`Use functools.partial to pass keywords to the callback
592+
:ref:`Use functools.partial to pass keywords to the *func*
593593
<asyncio-pass-keywords>`.
594594

595595
This method is a :ref:`coroutine <coroutine>`.

0 commit comments

Comments
 (0)