You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, @xuzhiyong28
In gRPC, the blockingStub does not have a direct method to set a timeout. However, you can achieve a similar effect by using deadlines. Deadlines allow gRPC clients to specify how long they are willing to wait for an RPC to complete before it is terminated with an error like DEADLINE_EXCEEDED.
Here is an example of how you can set a deadline for a gRPC call using Java: response = blockingStub.withDeadlineAfter(deadlineMs, TimeUnit.MILLISECONDS).doSomthing(request);
No description provided.
The text was updated successfully, but these errors were encountered: