
olves…turn a promise. That’s not a great solution because async/await is just a layer on top of promises. Adding async to a function that doesn’t need it (e.g. it doesn’t call await ) will add a wasteful promise wrapper and a next-tick operation. This is because a promise always resolves on a next-tick and async methods always return a promise.
odeJs for every connection request do not create a new thread instead it receives all request on single thread and delegates it to be h…ain functionality differentiation between NodeJs based servers and other IIS/ Apache based servers, NodeJs for every connection request do not create a new thread instead it receives all request on single thread and delegates it to be handled by many background workers to do the task as required. Libuv library handles this workers in collaboration with OS kernel. Lib…