Azure / Azure/azure-functions-java-worker

Add support for functions that return a Future

Đang mở
#244 12 bình luận 0 reaction 1 người được giao Được @kaibocai nhận Xem trên GitHub
area:java-functions New Feature P1 reviewed
Ngôn ngữ chính
Java
Star
103
Fork
74
Merge trung bình
4 ngày 8 giờ
Pull request đã merge (30 ngày)
2

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.