diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-02-25 13:24:15 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-02-25 13:24:15 (GMT) |
commit | 83704963c0d4e7b1474d6102ed6287a7ae4907a8 (patch) | |
tree | 2c959817bccdef128ceca8f8f95311bbd693175f /Doc/library/asyncio-subprocess.rst | |
parent | 532c69a4280185de3faf198776b6d5d75bdec095 (diff) | |
download | cpython-83704963c0d4e7b1474d6102ed6287a7ae4907a8.zip cpython-83704963c0d4e7b1474d6102ed6287a7ae4907a8.tar.gz cpython-83704963c0d4e7b1474d6102ed6287a7ae4907a8.tar.bz2 |
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 1334f5b..1b82030 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 |