3 ms·
Not all JavaScript code is async. If you write an infinite loop what takes a while, you'll lock up your entire JavaScript thread... let count = 0 ; while (cou
by PopeDotNinja 8y ago
Not all JavaScript code is async. If you write an infinite loop what takes a while, you'll lock up your entire JavaScript thread...
let count = 0 ; while (count < 1000000000) { count += 1 }
Counting from 1 to a billion will block any other operation from happening. In Elixir, that's not the case. Or am missing something?