grpc / grpc/grpc-java

Add Context.Key.create and createWithDefault

Aperta
#3,822 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
12.1k
Fork
4k
Merge medio
2g 17h
PR unite (30g)
37

Descrizione

We'd like to remove needless differences between Attributes.Key, CallOptions.Key, and Context.Key. The Context.key() and keyWithDefault() is actually a bit weird today, and not something we'd like to copy. But we'd like to add the create methods to Key for consistency.

We will leave the current key() and keyWithDefault() methods. Just add new methods.

Related: #1869, #1764.

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.