Hacker News new | ask | show | jobs
by abdellah123 898 days ago
why?
2 comments

So that heavy operation doesn't block the main UI thread?
I do have a function that needs to run in a webworker, as it would block the UI for somewhere between 1s and 30s, but I can't see myself adopting this. It looks readable like normal JS. And so it hides its nature from the casual reader. The package does have the usual deadlock problems, so I totally expect this to cause problems.