I would appreciate some ideas/help for a decent implementation to this problem.
I have a functionA called from different workers. The function in fact makes a AJAX request to my server (really it is the same query for any of the workers).
What I want is only the first time the functionA is invoked make the request and block all the other calls until the server request finished and return the value to all the workers.
Thanks in advance.