Learning uasyncio and futures

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Posts: 80
Joined: Sat Oct 27, 2018 5:17 pm

Re: Learning uasyncio and futures

Post by rpr » Mon Dec 03, 2018 9:01 am

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.

Post Reply