Here is another answer from Stackoverflow 
https://stackoverflow.com/a/52786692/6693234


On Thursday, October 4, 2018 at 1:24:13 PM UTC-7, Carl Mastrangelo wrote:
>
> (speaking on my own behalf, rather than the team):  You can assume this 
> part of the API will never change.   The usage of that API is widespread 
> enough that it would be infeasible to change it now, even if we reserved 
> the right to.  
>
> If you are keen on using a Non experimental API, you can use the 
> ClientCall and Server call directly, which do have stable APIs.  If worse 
> came to worse, you could copy paste our io.grpc.stub package and not worry 
> about API breakages (we infrequently update that package anyways).  
>  StreamObserver and friends are thin wrappers on top of ClientCall and 
> Server call.   You can make your own "Observers" and pass them into the 
> helper functions in io.grpc.stub.ClientCalls and ServerCalls, which do have 
> stable APIs.
>
> I have personally done all of these things, and would still feel 
> comfortable using the unstable API in CallStreamObserver.
>
> On Wednesday, October 3, 2018 at 7:39:10 PM UTC-7, [email protected] wrote:
>>
>> Since all StreamObserver (CallStreamObserver, ServerCallStreamObserver) 
>> classes are marked as experimental 
>> https://github.com/grpc/grpc-java/issues/1788 , What is a stable way to 
>> allow a client to gracefully cancel streaming service by signaling the 
>> server to stop sending messages?
>>
>> Also, if I decide to use these experimental classes to achieve this 
>> functionality, can I assume that I will be fine unless I upgrade grpc-java 
>> version?
>>
>>
>> I have tried to seach for the answer on Stackoverflow and this group but 
>> could not get a concrete answer. Ideally this should be documented as part 
>> of gRPC official documentation. 
>>
>>
>> Thanks,
>>
>> Sankate
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/54303093-956e-4463-85df-5e7fc4222351%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to