diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-05-07 01:19:06 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-05-07 01:19:06 (GMT) |
commit | 828946e561389105b27cd7e00b4ab0f5e8caa03a (patch) | |
tree | 17afcc393a0c843d1a09cd9b823fbfbac07bd4a0 /Doc/library/asyncio-sync.rst | |
parent | 4b5367c46d8566f018b2b22a76b00063d13d3522 (diff) | |
download | cpython-828946e561389105b27cd7e00b4ab0f5e8caa03a.zip cpython-828946e561389105b27cd7e00b4ab0f5e8caa03a.tar.gz cpython-828946e561389105b27cd7e00b4ab0f5e8caa03a.tar.bz2 |
Fix copy/paste errors.
Basically, s/thread/coroutine/.
Diffstat (limited to 'Doc/library/asyncio-sync.rst')
-rw-r--r-- | Doc/library/asyncio-sync.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst index 622ff5fd..7925731 100644 --- a/Doc/library/asyncio-sync.rst +++ b/Doc/library/asyncio-sync.rst @@ -196,9 +196,9 @@ Condition .. method:: notify_all() - Wake up all threads waiting on this condition. This method acts like - :meth:`notify`, but wakes up all waiting threads instead of one. If the - calling thread has not acquired the lock when this method is called, a + Wake up all coroutines waiting on this condition. This method acts like + :meth:`notify`, but wakes up all waiting coroutines instead of one. If the + calling coroutine has not acquired the lock when this method is called, a :exc:`RuntimeError` is raised. .. method:: release() @@ -250,7 +250,7 @@ Semaphore A semaphore manages an internal counter which is decremented by each :meth:`acquire` call and incremented by each :meth:`release` call. The counter can never go below zero; when :meth:`acquire` finds that it is zero, - it blocks, waiting until some other thread calls :meth:`release`. + it blocks, waiting until some other coroutine calls :meth:`release`. Semaphores also support the context management protocol. |