googleapis / googleapis/google-cloud-java

Replace ListenableFuture with CompletionStage / CompletableFuture

Open
#9,498 0 comments 0 reactions 0 assignees View on GitHub
priority: p3 type: process
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
154

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.