MCPcopy
hub / github.com/grpc/grpc-go / GracefulClose

Method GracefulClose

internal/transport/transport.go:623–623  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

621 //
622 // It does not block.
623 GracefulClose()
624
625 // NewStream creates a Stream for an RPC.
626 NewStream(ctx context.Context, callHdr *CallHdr, handler stats.Handler) (*ClientStream, error)

Callers 3

updateAddrsMethod · 0.65
tearDownMethod · 0.65
TestGracefulCloseMethod · 0.65

Implementers 1

http2Clientinternal/transport/http2_client.go

Calls

no outgoing calls

Tested by 1

TestGracefulCloseMethod · 0.52