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

Method IsReconnecting

nats.go:6062–6066  ·  view source on GitHub ↗

IsReconnecting tests if a Conn is reconnecting.

()

Source from the content-addressed store, hash-verified

6060
6061// IsReconnecting tests if a Conn is reconnecting.
6062func (nc *Conn) IsReconnecting() bool {
6063 nc.mu.RLock()
6064 defer nc.mu.RUnlock()
6065 return nc.isReconnecting()
6066}
6067
6068// IsConnected tests if a Conn is connected.
6069func (nc *Conn) IsConnected() bool {

Callers 4

RTTMethod · 0.95

Calls 1

isReconnectingMethod · 0.95

Tested by 3