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

Method IsDraining

nats.go:6205–6209  ·  view source on GitHub ↗

IsDraining tests if a Conn is in the draining state.

()

Source from the content-addressed store, hash-verified

6203
6204// IsDraining tests if a Conn is in the draining state.
6205func (nc *Conn) IsDraining() bool {
6206 nc.mu.RLock()
6207 defer nc.mu.RUnlock()
6208 return nc.isDraining()
6209}
6210
6211// caller must lock
6212func (nc *Conn) getServers(implicitOnly bool) []string {

Callers 2

UnsubscribeMethod · 0.45
TestDrainFunction · 0.45

Calls 1

isDrainingMethod · 0.95

Tested by 1

TestDrainFunction · 0.36