Page 1 of 1

Background asyncio event loop

Posted: Sat May 14, 2022 10:45 am
by p_j
Is it possible to run the asyncio event loop in the background so that the repl can still be used?

Thanks

Re: Background asyncio event loop

Posted: Sun May 15, 2022 8:16 am
by pythoncoder
No.

Re: Background asyncio event loop

Posted: Tue May 17, 2022 8:30 am
by Wind-stormger
Good idea, but your idea looks more like you want the MCU to achieve the performance of a SOC like the Raspberry Pi 4b that can run Linux. :)

Re: Background asyncio event loop

Posted: Fri May 20, 2022 11:34 pm
by p_j
Thanks both, I was more thinking it would be good for a testing/debugging perspective, to check what tasks are running, interact with the tasks etc..

Re: Background asyncio event loop

Posted: Sat May 21, 2022 1:05 am
by Mike Teachman
p_j wrote:
Fri May 20, 2022 11:34 pm
Thanks both, I was more thinking it would be good for a testing/debugging perspective, to check what tasks are running, interact with the tasks etc..
It sounds like this might be what you are looking for:
https://github.com/peterhinch/micropython-monitor

Re: Background asyncio event loop

Posted: Mon May 23, 2022 1:20 pm
by p_j
Mike Teachman wrote:
Sat May 21, 2022 1:05 am
p_j wrote:
Fri May 20, 2022 11:34 pm
Thanks both, I was more thinking it would be good for a testing/debugging perspective, to check what tasks are running, interact with the tasks etc..
It sounds like this might be what you are looking for:
https://github.com/peterhinch/micropython-monitor
Very interesting thanks for the link.