and thank you Peter for leading me to asyncio V3... and the guide "Application of uasyncio to hardware interfaces".
JP
uasyncio, loop doesn't stops
Re: uasyncio, loop doesn't stops
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.