Commit d73ac0eb authored by Kevin Mai-Husan Chia's avatar Kevin Mai-Husan Chia Committed by Lisa Roach

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

parent 2bdd5858
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment