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

Method isClosed

nats.go:6252–6254  ·  view source on GitHub ↗

Test if Conn has been closed Lock is assumed held.

()

Source from the content-addressed store, hash-verified

6250
6251// Test if Conn has been closed Lock is assumed held.
6252func (nc *Conn) isClosed() bool {
6253 return nc.status == CLOSED
6254}
6255
6256// Test if Conn is in the process of connecting
6257func (nc *Conn) isConnecting() bool {

Callers 15

ForceReconnectMethod · 0.95
doReconnectMethod · 0.95
processOpErrMethod · 0.95
publishMethod · 0.95
respHandlerMethod · 0.95
subscribeLockedMethod · 0.95
unsubscribeMethod · 0.95
FlushTimeoutMethod · 0.95
BufferedMethod · 0.95
closeMethod · 0.95
IsClosedMethod · 0.95
drainConnectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected