Process a request asynchronously.
Use this in DispatchPF for processing REST requests asynchronously.
- the user function that does the actual computation. This function takes one parameter which is the functino that must be invoked for returning the actual response to the client. Note that f function is invoked asynchronously in the context of a different thread.
(Since version 2.4) Use RestContinuation.async. It provides much better resource management