Background asyncio event loop

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
p_j
Posts: 102
Joined: Mon Aug 23, 2021 1:08 pm
Location: Sydney

Background asyncio event loop

Post by p_j » Sat May 14, 2022 10:45 am

Is it possible to run the asyncio event loop in the background so that the repl can still be used?

Thanks

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Background asyncio event loop

Post by pythoncoder » Sun May 15, 2022 8:16 am

No.
Peter Hinch
Index to my micropython libraries.

User avatar
Wind-stormger
Posts: 17
Joined: Fri Nov 05, 2021 6:59 am

Re: Background asyncio event loop

Post by Wind-stormger » Tue May 17, 2022 8:30 am

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

p_j
Posts: 102
Joined: Mon Aug 23, 2021 1:08 pm
Location: Sydney

Re: Background asyncio event loop

Post by p_j » 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..

User avatar
Mike Teachman
Posts: 155
Joined: Mon Jun 13, 2016 3:19 pm
Location: Victoria, BC, Canada

Re: Background asyncio event loop

Post by Mike Teachman » 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

p_j
Posts: 102
Joined: Mon Aug 23, 2021 1:08 pm
Location: Sydney

Re: Background asyncio event loop

Post by p_j » Mon May 23, 2022 1:20 pm

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.

Post Reply