On Thursday, August 1, 2019 at 11:09:40 AM UTC-7, Elhanan Maayan wrote:
>
> hi..
> i have a  streaming call that i'd like to run under a specific context. 
> (in order to cancel it later) 
>
> the onError of the observer give me that status error in case of a network 
> failure. 
> what i'd like to do  is automatically create another call to the same 
> destination, however the only way that could happen is if i invoke it from 
> the onError of the observer 
> so i will basically have an observer that will create itself each time a 
> failure happens. 
>

This seems fine.
 

>
> the 2nd question is it possible to reuse the same context that had it's 
> called failed with on Error?
>
>
>
Yes, as long as the Context is not cancelled, it can be re-used. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/2fec713d-b10b-40a8-8247-6b6423b1a41c%40googlegroups.com.

Reply via email to