I have аn express route in which I call an async function. I don't want express wait till function be executed. Maybe it already works as I want, but I don't know how to check and prove it.
I have something like this:
app.get("/", function (req, res) {
asyncFunctionCall();
res.end();
});
In asyncFunctionCall
I run slow HTTP-request. If main route logic will be executed before request, I don't want to wait it, but I want to return response to user.
Will Node.js wait until it ends or my http request will run in background without user-request?