googleapis / googleapis/google-cloud-java

Replace ListenableFuture with CompletionStage / CompletableFuture

Aperta
#9,498 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
priority: p3 type: process
Lingua principale
Java
Stelle
2.1k
Fork
1.2k
Merge medio
1g 23h
PR unite (30g)
154

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.