mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Merge 3.4 -> 3.5
This commit is contained in:
commit
313242aa03
1 changed files with 3 additions and 3 deletions
|
@ -586,14 +586,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>`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue