internal: tweak ClientTransport.GracefulClose documentation (#2772)
* internal: tweak ClientTransport.GracefulClose documentation * address menghanl@ review comment
This commit is contained in:
@ -578,8 +578,11 @@ type ClientTransport interface {
|
|||||||
// is called only once.
|
// is called only once.
|
||||||
Close() error
|
Close() error
|
||||||
|
|
||||||
// GracefulClose starts to tear down the transport. It stops accepting
|
// GracefulClose starts to tear down the transport: the transport will stop
|
||||||
// new RPCs and wait the completion of the pending RPCs.
|
// accepting new RPCs and NewStream will return error. Once all streams are
|
||||||
|
// finished, the transport will close.
|
||||||
|
//
|
||||||
|
// It does not block.
|
||||||
GracefulClose() error
|
GracefulClose() error
|
||||||
|
|
||||||
// Write sends the data for the given stream. A nil stream indicates
|
// Write sends the data for the given stream. A nil stream indicates
|
||||||
|
Reference in New Issue
Block a user