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

Method clearPendingFlushCalls

nats.go:5913–5921  ·  view source on GitHub ↗

This will clear any pending flush calls and release pending calls. Lock is assumed to be held by the caller.

()

Source from the content-addressed store, hash-verified

5911// This will clear any pending flush calls and release pending calls.
5912// Lock is assumed to be held by the caller.
5913func (nc *Conn) clearPendingFlushCalls() {
5914 // Clear any queued pongs, e.g. pending flush calls.
5915 for _, ch := range nc.pongs {
5916 if ch != nil {
5917 close(ch)
5918 }
5919 }
5920 nc.pongs = nil
5921}
5922
5923// This will clear any pending Request calls.
5924// Lock is assumed to be held by the caller.

Callers 3

ForceReconnectMethod · 0.95
processOpErrMethod · 0.95
closeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected