
May 15, 2022
11:47 p.m.
On Sun, May 15, 2022 at 03:34:15PM +0100, MRAB wrote:
On 2022-05-15 03:10, Aaron Fink wrote:
Hello.
I've been thinking it would be nice to be able to use await to suspend execution until a condition is met (as represented by a function or lambda which returns a boolean. [...] It's still just polling, so it could be expensive to check very often. All the callback is returning is True/False, which isn't very helpful for deciding how often it should check.