Azure / Azure/azure-functions-java-worker
Add support for functions that return a Future
Ouverte
area:java-functions
New Feature
P1
reviewed
- Langage dominant
- Java
- Étoiles
- 103
- Forks
- 74
- Merge moyen
- 4 j 8 h
- PR mergées (30 j)
- 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.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.