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

Sleeping is done with setTimeout:

https://gitlab.com/stressgrid/dummies/blob/b342b02407ce09cec...

This isn't busy wait. Instead it yields for specified time period, much like network request to the backend database would do.



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

Search: