|
|
|
|
|
by jokethrowaway
813 days ago
|
|
Await-async is implemented with a runtime which uses a thread pool or a single thread and allocates work when needed on any thread and waits for IO to yield a result. 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.