summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-subprocess.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-03-16 20:29:31 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-03-16 20:29:31 (GMT)
commit7bdf786e747e59ab47a3c45c0fd42c12cd7cb221 (patch)
treefcf115be299cda36dd59323f0ac1c3c8730f731c /Doc/library/asyncio-subprocess.rst
parentfca286601b99e00ab6d04f49634bdc27af461144 (diff)
downloadcpython-7bdf786e747e59ab47a3c45c0fd42c12cd7cb221.zip
cpython-7bdf786e747e59ab47a3c45c0fd42c12cd7cb221.tar.gz
cpython-7bdf786e747e59ab47a3c45c0fd42c12cd7cb221.tar.bz2
Issue #20950: Fix typo asyncio doc, wait() has no self parameter
self parameter is implicit. Mention also that communicate() and wait() are coroutines.
Diffstat (limited to 'Doc/library/asyncio-subprocess.rst')
-rw-r--r--Doc/library/asyncio-subprocess.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/asyncio-subprocess.rst b/Doc/library/asyncio-subprocess.rst
index 861bcc0..44ef504 100644
--- a/Doc/library/asyncio-subprocess.rst
+++ b/Doc/library/asyncio-subprocess.rst
@@ -107,6 +107,8 @@ Process
The data read is buffered in memory, so do not use this method if the
data size is large or unlimited.
+ This method is a :ref:`coroutine <coroutine>`.
+
.. method:: kill()
Kills the child. On Posix OSs the function sends :py:data:`SIGKILL` to
@@ -129,11 +131,13 @@ Process
to the child. On Windows the Win32 API function
:c:func:`TerminateProcess` is called to stop the child.
- .. method:: wait(self):
+ .. method:: wait():
Wait for child process to terminate. Set and return :attr:`returncode`
attribute.
+ This method is a :ref:`coroutine <coroutine>`.
+
Example
-------