bpo-33649: Polish asyncio subprocess and sync docs (GH-9285)

Second pass for asyncio subprocess and sync docs.


https://bugs.python.org/issue33649
This commit is contained in:
Carol Willing 2018-09-13 18:28:19 -07:00 committed by Miss Islington (bot)
parent 11194c877c
commit 4e824e9649
2 changed files with 12 additions and 13 deletions

View file

@ -13,11 +13,11 @@ those of the :mod:`threading` module with two important caveats:
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 @@ Lock
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 @@ Event
Example::
async def waiter(event):
print('waiting ...')
print('waiting for it ...')
await event.wait()
print('... got it!')