Kaydet (Commit) d73ac0eb authored tarafından Kevin Mai-Husan Chia's avatar Kevin Mai-Husan Chia Kaydeden (comit) Lisa Roach

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

üst 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