Skip to content

Add support for functions that return a Future #244

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions