Skip to content

Add support for functions that return a Future #244

Open
@pragnagopa

Description

@pragnagopa

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions