api: Added documentation for Call onClose hanging problem

This commit is contained in:
wanyingd1996 2020-11-19 12:45:16 -08:00 committed by GitHub
parent 99df22a7a6
commit 2bf5ef54da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -141,6 +141,10 @@ public abstract class ClientCall<ReqT, RespT> {
* An additional block of trailer metadata may be received at the end of the call from the
* server. An empty {@link Metadata} object is passed if no trailers are received.
*
* <p>This method should not throw. If this method throws, there is no way to be notified of the
* exception. Implementations should therefore be careful of exceptions which can accidentally
* leak resources.
*
* @param status the result of the remote call.
* @param trailers metadata provided at call completion.
*/