Skip to content

Commit 7eeb411

Browse files
authored
doc: add comment about callOptions executor behavior (#8913)
1 parent 560a7fb commit 7eeb411

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/src/main/java/io/grpc/CallOptions.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ public <T> T getOption(Key<T> key) {
358358
return key.defaultValue;
359359
}
360360

361+
/**
362+
* Returns the executor override to use for this specific call, or {@code null} if there is no
363+
* override. The executor is only for servicing this one call, so is not safe to use after
364+
* {@link ClientCall.Listener#onClose}.
365+
*/
361366
@Nullable
362367
public Executor getExecutor() {
363368
return executor;

0 commit comments

Comments
 (0)