The whole idea of async functions is to run tasks concurrently and with simple syntax on a single thread. Hiding the actual concurrency under the runtime, only when it is waiting for IO.
It doesn’t matter that node is single threaded, nor does the GIL have any impact on single thread.
It’s once you start doing cpu heavy work inside the tasks this will hit you.
It doesn’t matter that node is single threaded, nor does the GIL have any impact on single thread.
It’s once you start doing cpu heavy work inside the tasks this will hit you.