mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +00:00
asyncio doc: functions are coroutine, they don't return a coroutine
It's not exact, but easier to understand.
This commit is contained in:
parent
39930c9ca0
commit
2fb3b82706
3 changed files with 4 additions and 4 deletions
|
|
@ -11,13 +11,13 @@ Create a subprocess
|
|||
Run the shell command *cmd* given as a string. Return a :class:`~asyncio.subprocess.Process`
|
||||
instance.
|
||||
|
||||
This function returns a :ref:`coroutine object <coroutine>`.
|
||||
This function is a :ref:`coroutine <coroutine>`.
|
||||
|
||||
.. function:: create_subprocess_exec(\*args, stdin=None, stdout=None, stderr=None, loop=None, limit=None, \*\*kwds)
|
||||
|
||||
Create a subprocess. Return a :class:`~asyncio.subprocess.Process` instance.
|
||||
|
||||
This function returns a :ref:`coroutine object <coroutine>`.
|
||||
This function is a :ref:`coroutine <coroutine>`.
|
||||
|
||||
Use the :meth:`BaseEventLoop.connect_read_pipe` and
|
||||
:meth:`BaseEventLoop.connect_write_pipe` methods to connect pipes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue