Azure / Azure/azure-functions-java-worker

Add support for functions that return a Future

Open
#244 12 comments 0 reactions 1 assignee Claimed by @kaibocai View on GitHub
area:java-functions New Feature P1 reviewed
Dominant language
Java
Stars
103
Forks
74
Avg merge
4d 8h
Merged PRs (30d)
2

Description

Add support for functions to run async. For example

```java
@FunctionName("HttpTrigger-JavaAsync")
public CompletableFuture runAsync(
@HttpTrigger(name = "req", methods = {HttpMethod.GET, HttpMethod.POST}, authLevel = AuthorizationLevel.FUNCTION) HttpRequestMessage> 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.