M
M
Maxim Virchenko2021-02-06 00:48:12
Node.js
Maxim Virchenko, 2021-02-06 00:48:12

How does the function to which the callback is passed work?

How does an async function work with a callback?
The data is also obtained asynchronously (for example, from the database) and, in theory, nothing should be transferred to the callback,
Or is the code executed synchronously inside the asynchronous function?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question