Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> (a lot of people resort to some type of blocking sleep style function call to solve the delay part of this problem)

In many async languages you can do an async sleep (e.g. Python's asyncio.sleep()) which is a sleep that uses the event loop. Really, that's all Javascript's setTimeout() is doing anyway; it's just named differently.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: