Azure / Azure/azure-functions-java-worker

Add support for functions that return a Future

Abierto
#244 12 comentarios 0 reacciones 1 asignado Reclamado por @kaibocai Ver en GitHub
area:java-functions New Feature P1 reviewed
Lenguaje dominante
Java
Estrellas
103
Forks
74
Merge medio
4 d 8 h
PR fusionados (30 d)
2

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.