If a synchronous function is called within the .then
part of an asynchronous await .then
, such as:
await asyncFunc(...)
.then(res => sendMSG(res))
.catch(err => next(err));
function sendMSG(res){
xyz
}
The sync function sendMSG
is invoked in an asynchronous context. What would be the outcome if multiple asyncFunctions simultaneously invoke sendMSG?