When version 0.5.0 comes out, you might be able to things with async support...
Ex:
- request comes in
- increment the counter
- have the body of the long running function be computed using
future
-
future will not access to the live counter, only the counter value it knows about at the start of execution.
- In the pre-serializer step, decrement the counter
But for now, I do not see a way.