Open
Description
Add support for functions to run async. For example
@FunctionName("HttpTrigger-JavaAsync")
public CompletableFuture<HttpResponseMessage> runAsync(
@HttpTrigger(name = "req", methods = {HttpMethod.GET, HttpMethod.POST}, authLevel = AuthorizationLevel.FUNCTION) HttpRequestMessage<Optional<String>> request,
final ExecutionContext context)
Java worker should inspect function method signature, if it returns a Future
invoke it asynchronously
and if not invoke the method synchronously.