Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4899

Beginners • Re: How can i run endless loop, and in the same time run the code after endless loop?

$
0
0
It's a shame that '_thread' is so flaky and there's no 'threading' alternative with MicroPython which will support running more than one thread.

An alternative is to use 'async' but I haven't found the time to climb that learning curve yet.

My approach to running multiple servers and other events was to use a 'while forever' loop, polling on sockets, and checking event trigger times.

Statistics: Posted by hippy — Fri Apr 26, 2024 5:52 pm



Viewing all articles
Browse latest Browse all 4899

Trending Articles