In Node.js I have code similar to the following:
function requestHandler() {
expression1; // Not I/O related
expression2;
}
The question I have is if it is possible that expression1
gets executed for request 1 and then expression1
for request 2. I need to make sure that expression1
and expression2
run for one request before expression1
gets executed for any other request. Is this possible in Node.js?