]> granicus.if.org Git - python/commitdiff
Reflect parameter name change in the doc
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Thu, 1 Oct 2015 06:48:08 +0000 (09:48 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Thu, 1 Oct 2015 06:48:08 +0000 (09:48 +0300)
Doc/library/asyncio-eventloop.rst

index 78a07a00ddb0ac66a9a7cb57021709b0bd7d54c9..656eca636e4fb0ddf430b4598c629501ce6b52dc 100644 (file)
@@ -582,14 +582,14 @@ Call a function in an :class:`~concurrent.futures.Executor` (pool of threads or
 pool of processes). By default, an event loop uses a thread pool executor
 (:class:`~concurrent.futures.ThreadPoolExecutor`).
 
-.. coroutinemethod:: BaseEventLoop.run_in_executor(executor, callback, \*args)
+.. coroutinemethod:: BaseEventLoop.run_in_executor(executor, func, \*args)
 
-   Arrange for a callback to be called in the specified executor.
+   Arrange for a *func* to be called in the specified executor.
 
    The *executor* argument should be an :class:`~concurrent.futures.Executor`
    instance. The default executor is used if *executor* is ``None``.
 
-   :ref:`Use functools.partial to pass keywords to the callback
+   :ref:`Use functools.partial to pass keywords to the *func*
    <asyncio-pass-keywords>`.
 
    This method is a :ref:`coroutine <coroutine>`.