diff options
author | Carol Willing <carolcode@willingconsulting.com> | 2018-09-14 01:28:19 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-09-14 01:28:19 (GMT) |
commit | 4e824e96491f33c8a8462aa4970c55942064ae76 (patch) | |
tree | b5f38d2e8a4c5c72c82a3455d9d1e3c825bb4527 /Doc/library/asyncio-sync.rst | |
parent | 11194c877c902a6c3b769d85be887c2272e0a541 (diff) | |
download | cpython-4e824e96491f33c8a8462aa4970c55942064ae76.zip cpython-4e824e96491f33c8a8462aa4970c55942064ae76.tar.gz cpython-4e824e96491f33c8a8462aa4970c55942064ae76.tar.bz2 |
bpo-33649: Polish asyncio subprocess and sync docs (GH-9285)
Second pass for asyncio subprocess and sync docs.
https://bugs.python.org/issue33649
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 8e01ca9..8da5aa8 100644 --- a/Doc/library/asyncio-sync.rst +++ b/Doc/library/asyncio-sync.rst @@ -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!') |