MCPcopy
hub / github.com/nats-io/nats.go / IsClosed

Method IsClosed

nats.go:6055–6059  ·  view source on GitHub ↗

IsClosed tests if a Conn has been closed.

()

Source from the content-addressed store, hash-verified

6053
6054// IsClosed tests if a Conn has been closed.
6055func (nc *Conn) IsClosed() bool {
6056 nc.mu.RLock()
6057 defer nc.mu.RUnlock()
6058 return nc.isClosed()
6059}
6060
6061// IsReconnecting tests if a Conn is reconnecting.
6062func (nc *Conn) IsReconnecting() bool {

Callers 15

checkDrainedMethod · 0.95
RTTMethod · 0.95
UnsubscribeMethod · 0.80
NewEncodedConnFunction · 0.80
TestConnectionStatusFunction · 0.80
TestIsClosedFunction · 0.80
TestPermViolationFunction · 0.80
TestAuthErrorOnReconnectFunction · 0.80

Calls 1

isClosedMethod · 0.95