Parallelize Work with Workers in Javascript
· ☕ 2 min read
Use workers when doing lot of work that can be spawned off in another “thread”.
How do you open parallel work threads today? Possibly using async functions?
Async functions do not block the main thread but allow processing to take place in parallel. Well, almost in parallel - see how event loops work.