diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-02-25 14:24:15 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-02-25 14:24:15 +0100 |
commit | 5a522fbb821f0c5e9a1e2c514439fc7ac586ad28 (patch) | |
tree | f9ca91efd00795e9d8c29c576fa8ac3a2cacd413 /Doc/library/asyncio-subprocess.rst | |
parent | 33fe10a46cd853e776cc1b6e0428230efd072372 (diff) | |
download | cpython-5a522fbb821f0c5e9a1e2c514439fc7ac586ad28.tar.gz |
asyncio: add a note about (non) thread safety in each class
Diffstat (limited to 'Doc/library/asyncio-subprocess.rst')
-rw-r--r-- | Doc/library/asyncio-subprocess.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/asyncio-subprocess.rst b/Doc/library/asyncio-subprocess.rst index 1334f5b133..1b8203047a 100644 --- a/Doc/library/asyncio-subprocess.rst +++ b/Doc/library/asyncio-subprocess.rst @@ -193,6 +193,9 @@ Process :meth:`~subprocess.Popen.wait` method of the :class:`~subprocess.Popen` class is implemented as a busy loop. + This class is :ref:`not thread safe <asyncio-multithreading>`. See also the + :ref:`Subprocess and threads <asyncio-subprocess-threads>` section. + .. coroutinemethod:: wait() Wait for child process to terminate. Set and return :attr:`returncode` @@ -310,6 +313,8 @@ are limits: subprocesses from other threads. Call the :func:`get_child_watcher` function in the main thread to instantiate the child watcher. +The :class:`asyncio.subprocess.Process` class is not thread safe. + .. seealso:: The :ref:`Concurrency and multithreading in asyncio |