Fix typo: equivalent code of async with cond (GH-11681)
This commit is contained in:
committed by
Lisa Roach
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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user