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.
https://www.youtube.com/watch?v=18AzodTPG5U -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/5WKGELADXCYMD5VAIGM33IP63RVDSCEY/ Code of Conduct: http://python.org/psf/codeofconduct/