Since web workers negate the disadvantages of paused execution in JavaScript, as they will not block UI, is there a reliable method to get them to Sleep
?
Either for a designated time, or until they receive a message?
setTimeout
and setInterval
are available to web workers. So if you want to 'wait' your code this may be the best solution.