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

Method Close

internal/xds/clients/internal/testutils/wrappers.go:33–37  ·  view source on GitHub ↗

Close closes the connection and sends a value on the close channel.

()

Source from the content-addressed store, hash-verified

31
32// Close closes the connection and sends a value on the close channel.
33func (cw *ConnWrapper) Close() error {
34 err := cw.Conn.Close()
35 cw.CloseCh.Replace(nil)
36 return err
37}
38
39// ListenerWrapper wraps a net.Listener and the returned net.Conn.
40//

Callers

nothing calls this directly

Calls 2

CloseMethod · 0.65
ReplaceMethod · 0.45

Tested by

no test coverage detected