Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720)
This commit is contained in:
parent
dd63ee26a8
commit
1845997dd9
|
@ -187,11 +187,11 @@ Condition
|
|||
cond = asyncio.Condition()
|
||||
|
||||
# ... later
|
||||
await lock.acquire()
|
||||
await cond.acquire()
|
||||
try:
|
||||
await cond.wait()
|
||||
finally:
|
||||
lock.release()
|
||||
cond.release()
|
||||
|
||||
.. coroutinemethod:: acquire()
|
||||
|
||||
|
|
Loading…
Reference in New Issue