googleapis / googleapis/google-cloud-java

Replace ListenableFuture with CompletionStage / CompletableFuture

未关闭
#9,498 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
priority: p3 type: process
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
157

描述

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)
```

贡献指南

打开贡献指南

调研方向

从 issue 中链接的生成代码文档开始,将该请求与 issue #2688 及其引用的评论进行比较。确定代码生成配置参数将在哪些位置控制未来的存根签名;完成的标准是生成的一元 RPC 存根可以使用 CompletionStage 而不是 ListenableFuture。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。