Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Internally, is asyncio run_forever() basically a while True loop?

$
0
0

python asyncio run_forever or while True is similar but it is a "should I do this..." question.

I am more trying to understand if the internals of python asyncio is basically a

while True:  ...  time.sleep(1)

(or more precisely... while not stopped: loop.

Does it use also use sleep to prevent spin waits?


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>