I am doing something in the function(some asynchronous work) for the first request but at the same time a few more requests came, now my thread was working on the function(some asynchronous work) but at the same time node has started processing the new request that has came. so my question is, at a given point of time in code I want to know which request my thread is processing. I have explained the same below.
// requestA came
function fun(){
// some work
fun1();
fun2();
}
function fun1(){
// do some
// asynchronous work
}
function fun2(){
// do some more
// asynchronous work
}
fun();
now suppose 3 concurrent requests came -
requestB, requestC, requestD
Now Suppose at a given point of time I want to know fun2( ) or fun1( ) is running for which request in code. How in code I can know this?