This will clear any pending flush calls and release pending calls. Lock is assumed to be held by the caller.
()
| 5911 | // This will clear any pending flush calls and release pending calls. |
| 5912 | // Lock is assumed to be held by the caller. |
| 5913 | func (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. |
no outgoing calls
no test coverage detected