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 ...@@ -180,11 +180,11 @@ Condition
cond = asyncio.Condition() cond = asyncio.Condition()
# ... later # ... later
await lock.acquire() await cond.acquire()
try: try:
await cond.wait() await cond.wait()
finally: finally:
lock.release() cond.release()
.. coroutinemethod:: acquire() .. 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