uasyncio, loop doesn't stops

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
jpbihin
Posts: 7
Joined: Thu Feb 08, 2018 5:31 pm
Location: Belgium

Re: uasyncio, loop doesn't stops

Post by jpbihin » Mon Oct 12, 2020 7:38 pm

and thank you Peter for leading me to asyncio V3... and the guide "Application of uasyncio to hardware interfaces".
JP

t35tB0t
Posts: 1
Joined: Fri Oct 30, 2020 4:42 pm

Re: uasyncio, loop doesn't stops

Post by t35tB0t » Fri Oct 30, 2020 5:16 pm

When working with asyncio and many tasks running in the loop. We found it convenient to add a pollable SIGQUIT CTRL-\ trap in the keyboard input scanning stream (c-code). Unlike CTRL-C which triggers an exception. The flag can be polled by code to trigger a loop.stop(). We presently have this trap in a task but will probably move it into asyncio itself because that's where it belongs.

Post Reply