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

Method isDraining

nats.go:6272–6274  ·  view source on GitHub ↗

Test if Conn is in the draining state.

()

Source from the content-addressed store, hash-verified

6270
6271// Test if Conn is in the draining state.
6272func (nc *Conn) isDraining() bool {
6273 return nc.status == DRAINING_SUBS || nc.status == DRAINING_PUBS
6274}
6275
6276// Test if Conn is in the draining state for pubs.
6277func (nc *Conn) isDrainingPubs() bool {

Callers 4

subscribeLockedMethod · 0.95
DrainMethod · 0.95
IsDrainingMethod · 0.95
isConnectedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected