node can run other code, such as processing other requests
but what if
there is only one statement after this async operation and that statement needs the output of the previous aysnc call ?
in this case there would be no advantage of using callbacks and async operations right ?
you mean your entire program consists of only one asynchronous call and nothing else?
Exactly. That's why there's sync functions too
yes
Обсуждают сегодня