Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
codecurve
· 4y ago · 0 comments
I don't know of a JavaScript implementation where that approach would work. A synchronous implementation of `sleep` can't yield control back to the main thread to handle the asynchronous stuff. You'd just end up polling indefinitely.
Comments
No comments yet.
Better HN