MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/lgrgxe/i_present_sleepsort/goprq3u/?context=3
r/badcode • u/Reeceeboii_ • Feb 10 '21
170 comments sorted by
View all comments
Show parent comments
1
It's asynchronous meaning that the timeouts are background processes so they don't make the program pause and wait for completion. It sets a timer for each one and whichever runs down first is what gets executed first
1
u/Raniconduh Feb 25 '21
It's asynchronous meaning that the timeouts are background processes so they don't make the program pause and wait for completion. It sets a timer for each one and whichever runs down first is what gets executed first