4 ms·
>I hope I'm wrong because I've struggled with this. How would you perform a JS computation concurrently with handling user events? Like everything else -- by b
by coldtea 9y ago
>I hope I'm wrong because I've struggled with this. How would you perform a JS computation concurrently with handling user events?
Like everything else -- by breaking the work into small steps, and e.g. doing looping etc asynchronously.
There's this coming officially now too: https://tc39.github.io/proposal-async-iteration/ https://tc39.github.io/proposal-async-iteration/