developit / workerize

🏗️ Run a module in a Web Worker.
https://github.com/developit/workerize-loader
4.35k stars 91 forks source link

Readme demo says 250ms is "half a second" #8

Closed towerofnix closed 6 years ago

towerofnix commented 6 years ago

..should be "a quarter second".

This is the code:

// block for half a second to demonstrate asynchronicity
let start = Date.now();
while (Date.now()-start < 250);
developit commented 6 years ago

Thanks, fixed!