Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d73ac0e

Browse files
mhchialisroach
authored andcommitted
Fix typo: equivalent code of async with cond (GH-11681)
1 parent 2bdd585 commit d73ac0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/asyncio-sync.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ Condition
180180
cond = asyncio.Condition()
181181

182182
# ... later
183-
await lock.acquire()
183+
await cond.acquire()
184184
try:
185185
await cond.wait()
186186
finally:
187-
lock.release()
187+
cond.release()
188188

189189
.. coroutinemethod:: acquire()
190190

0 commit comments

Comments
 (0)