Thanks for this example. I'm trying to learn how asyncio works and how to use it. Your program ran error free on an ESP32.pythoncoder wrote: ↑Fri Nov 16, 2018 1:50 pmWell, that's your call I found cancellation and timeouts rather tricky to implement, but then I'm far too old for this kind of thing; a younger mind might polish them off in a day...
The following shows gather being used with timeouts and cancellation (tested on Unix and Pyboard):
----------