diff --git a/internal/transport/transport.go b/internal/transport/transport.go index 7f82cbb080df..0600e5042da9 100644 --- a/internal/transport/transport.go +++ b/internal/transport/transport.go @@ -578,8 +578,11 @@ type ClientTransport interface { // is called only once. Close() error - // GracefulClose starts to tear down the transport. It stops accepting - // new RPCs and wait the completion of the pending RPCs. + // GracefulClose starts to tear down the transport: the transport will stop + // accepting new RPCs and NewStream will return error. Once all streams are + // finished, the transport will close. + // + // It does not block. GracefulClose() error // Write sends the data for the given stream. A nil stream indicates