Page 3 of 3

Re: Learning uasyncio and futures

Posted: Mon Dec 03, 2018 9:01 am
by rpr
pythoncoder wrote:
Fri Nov 16, 2018 1:50 pm
Well, 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):

----------
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.