by jokethrowaway · 2y ago · 0 comments
With threads you just fully control what blocking code is running on a single thread.
If you are just running computations (or reading files, as filesystem api are not async) it's simpler to just use threads.
This is interesting - all nodejs file system APIs are async by default.