Fix typo: equivalent code of `async with cond` (GH-11681)

This commit is contained in:
Kevin Mai-Husan Chia 2019-02-14 10:39:25 +08:00 committed by Lisa Roach
parent 2bdd5858e3
commit d73ac0eba9
1 changed files with 2 additions and 2 deletions

View File

@ -180,11 +180,11 @@ Condition
cond = asyncio.Condition()
# ... later
await lock.acquire()
await cond.acquire()
try:
await cond.wait()
finally:
lock.release()
cond.release()
.. coroutinemethod:: acquire()