Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stub: Document StreamObserver is an async API #8449

Merged
merged 2 commits into from Aug 30, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions stub/src/main/java/io/grpc/stub/StreamObserver.java
Expand Up @@ -31,6 +31,11 @@
* not need to be synchronized together; incoming and outgoing directions are independent.
* Since individual {@code StreamObserver}s are not thread-safe, if multiple threads will be
* writing to a {@code StreamObserver} concurrently, the application must synchronize calls.
*
* <p>This API is asynchronous, so methods may return before the operation completes. gRPC
* guarantees it does not block on I/O in its implementation, but applications are allowed to
* perform blocking operations in their implementations. However, doing so will delay other
* callbacks because the methods cannot be called concurrently.
*/
public interface StreamObserver<V> {
/**
Expand Down