
May 15, 2022
5:05 p.m.
On 2022-05-16 00:47, Steven D'Aprano wrote:
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.
Exactly. Now imagine that happening 60 times a second!