mirror of
https://github.com/python/cpython.git
synced 2025-11-07 21:29:26 +00:00
asyncio doc: reorder methods; typo
This commit is contained in:
parent
1ca5ba611b
commit
933a8c82ce
2 changed files with 14 additions and 14 deletions
|
|
@ -192,12 +192,6 @@ BaseSubprocessTransport
|
||||||
|
|
||||||
Return the subprocess process id as an integer.
|
Return the subprocess process id as an integer.
|
||||||
|
|
||||||
.. method:: get_returncode()
|
|
||||||
|
|
||||||
Return the subprocess returncode as an integer or :const:`None`
|
|
||||||
if it hasn't returned, similarly to the
|
|
||||||
:attr:`subprocess.Popen.returncode` attribute.
|
|
||||||
|
|
||||||
.. method:: get_pipe_transport(fd)
|
.. method:: get_pipe_transport(fd)
|
||||||
|
|
||||||
Return the transport for the communication pipe correspondong to the
|
Return the transport for the communication pipe correspondong to the
|
||||||
|
|
@ -206,6 +200,19 @@ BaseSubprocessTransport
|
||||||
correspond to a pipe belonging to this transport, :const:`None` is
|
correspond to a pipe belonging to this transport, :const:`None` is
|
||||||
returned.
|
returned.
|
||||||
|
|
||||||
|
.. method:: get_returncode()
|
||||||
|
|
||||||
|
Return the subprocess returncode as an integer or :const:`None`
|
||||||
|
if it hasn't returned, similarly to the
|
||||||
|
:attr:`subprocess.Popen.returncode` attribute.
|
||||||
|
|
||||||
|
.. method:: kill(self)
|
||||||
|
|
||||||
|
Kill the subprocess, as in :meth:`subprocess.Popen.kill`
|
||||||
|
|
||||||
|
On POSIX systems, the function sends SIGKILL to the subprocess.
|
||||||
|
On Windows, this method is an alias for :meth:`terminate`.
|
||||||
|
|
||||||
.. method:: send_signal(signal)
|
.. method:: send_signal(signal)
|
||||||
|
|
||||||
Send the *signal* number to the subprocess, as in
|
Send the *signal* number to the subprocess, as in
|
||||||
|
|
@ -220,13 +227,6 @@ BaseSubprocessTransport
|
||||||
On Windows, the Windows API function TerminateProcess() is called to
|
On Windows, the Windows API function TerminateProcess() is called to
|
||||||
stop the subprocess.
|
stop the subprocess.
|
||||||
|
|
||||||
.. method:: kill(self)
|
|
||||||
|
|
||||||
Kill the subprocess, as in :meth:`subprocess.Popen.kill`
|
|
||||||
|
|
||||||
On POSIX systems, the function sends SIGKILL to the subprocess.
|
|
||||||
On Windows, this method is an alias for :meth:`terminate`.
|
|
||||||
|
|
||||||
|
|
||||||
StreamWriter
|
StreamWriter
|
||||||
------------
|
------------
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,7 @@ Task functions
|
||||||
or ``None``, there is no limit to the wait time.
|
or ``None``, there is no limit to the wait time.
|
||||||
|
|
||||||
*return_when* indicates when this function should return. It must be one of
|
*return_when* indicates when this function should return. It must be one of
|
||||||
the following constants of the :mod`concurrent.futures` module:
|
the following constants of the :mod:`concurrent.futures` module:
|
||||||
|
|
||||||
.. tabularcolumns:: |l|L|
|
.. tabularcolumns:: |l|L|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue