bpo-33649: Polish asyncio subprocess and sync docs (GH-9285)
Second pass for asyncio subprocess and sync docs.
https://bugs.python.org/issue33649
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst
index 8e01ca9..8da5aa8 100644
--- a/Doc/library/asyncio-sync.rst
+++ b/Doc/library/asyncio-sync.rst
@@ -13,11 +13,11 @@
be used for OS threads synchronization (use :mod:`threading` for
that);
-* methods of synchronization objects do not accept the *timeout*
+* methods of synchronization primitives do not accept the *timeout*
argument; use the :func:`asyncio.wait_for` function to perform
operations with timeouts.
-asyncio has the following basic primitives:
+asyncio has the following basic sychronization primitives:
* :class:`Lock`
* :class:`Event`
@@ -72,7 +72,7 @@
When the lock is *locked*, reset it to *unlocked* and return.
- If the lock is *unlocked* a :exc:`RuntimeError` is raised.
+ If the lock is *unlocked*, a :exc:`RuntimeError` is raised.
.. method:: locked()
@@ -97,7 +97,7 @@
Example::
async def waiter(event):
- print('waiting ...')
+ print('waiting for it ...')
await event.wait()
print('... got it!')