googleapis / googleapis/google-cloud-java

Replace ListenableFuture with CompletionStage / CompletableFuture

Đang mở
#9,498 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
priority: p3 type: process
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

Thanks for stopping by to let us know something could be better!

**Is your feature request related to a problem? Please describe.**
E.g. [#2688](https://github.com/grpc/grpc-java/issues/2688), the same request is mentioned [there](https://github.com/grpc/grpc-java/issues/2688#issuecomment-386447024).

**Describe the solution you'd like**
To add code generation configuration parameter to use CompletionStage instead of ListenableFuture.

From https://grpc.io/docs/languages/java/generated-code/#unary-3 :
```
Unary

The future stub signature for a unary RPC method unaryExample:

-public ListenableFuture unaryExample(RequestType request)
+public CompletionStage unaryExample(RequestType request)
```

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.