Azure / Azure/azure-functions-java-worker
Add support for functions that return a Future
Đang mở
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
Đánh giá
Issue này chưa được đánh giá.