Azure / Azure/azure-functions-java-worker
Add support for functions that return a Future
Aperta
area:java-functions
New Feature
P1
reviewed
- Lingua principale
- Java
- Stelle
- 103
- Fork
- 74
- Merge medio
- 4g 8h
- PR unite (30g)
- 2
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.