mirror of https://github.com/python/cpython
Fix typo: equivalent code of `async with cond` (GH-11681)
This commit is contained in:
parent
2bdd5858e3
commit
d73ac0eba9
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue