Re: Is it possible to do something similar to gnome glib's GSource in asyncio?

2018-03-19 Thread Vitaly Krug
Mea culpa! It sounds like I should be able to create a specialized future to test for my loop exit condition and then use that future with asyncio loop's `run_until_complete()` method. On Sat, Mar 17, 2018 at 7:39 PM, Vitaly Krug wrote: > I am looking for a way to get a

Is it possible to do something similar to gnome glib's GSource in asyncio?

2018-03-19 Thread Vitaly Krug
I am looking for a way to get a callback each time before asyncio event loop goes back to waiting on I/O (select, epoll, etc.). Documentation and googling for the answer hasn't helped yet. I am looking for something similar to gnome glib's GSource interface (