Thank you for clarifying!

On Monday, May 4, 2020 at 11:19:31 AM UTC-5, Eric Anderson wrote:
>
> On Wed, Apr 29, 2020 at 3:21 PM <[email protected] <javascript:>> wrote:
>
>> Interesting - thank you very much! I did see this in the StreamObserver 
>> doc 
>> <https://grpc.github.io/grpc-java/javadoc/io/grpc/stub/StreamObserver.html>
>> :
>>
>> "Since individual StreamObservers are not thread-safe, if multiple 
>> threads will be writing to a StreamObserver concurrently, the 
>> application must synchronize calls"
>>
>
> That documentation is correct, and gRPC framework abides by it as well. 
> StreamObservers are not-thread-safe so the caller has to synchronize, if 
> necessary.
>
> It seems like Christoph was describing *calling into* a StreamObserver. 
> And yes, he is correct, if you call into a StreamObserver from multiple 
> threads, you must synchronize them yourself. But it sounded like you were 
> talking *being called*, in which case you don't need to manage 
> synchronization.
>

-- 
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/b52f02c2-8f0a-4a6b-961d-9e9105ba16b0%40googlegroups.com.

Reply via email to