Andrew Svetlov <andrew.svet...@gmail.com> added the comment: 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`. ---------- resolution: -> rejected stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33546> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com