Message317223
No, condition variables don't work this way.
The proper code looks like:
async with cond:
while not <condition met>:
await cond.wait()
<do work when the condition is satisfied>
It cannot be collapsed to just `await cond`. |
|
Date |
User |
Action |
Args |
2018-05-21 09:29:32 | asvetlov | set | recipients:
+ asvetlov, lukasz.langa, yselivanov, fried |
2018-05-21 09:29:32 | asvetlov | set | messageid: <1526894972.81.0.682650639539.issue33546@psf.upfronthosting.co.za> |
2018-05-21 09:29:32 | asvetlov | link | issue33546 messages |
2018-05-21 09:29:32 | asvetlov | create | |
|