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

Method kickFlusher

nats.go:4217–4224  ·  view source on GitHub ↗

kickFlusher will send a bool on a channel to kick the flush Go routine to flush data to the server.

()

Source from the content-addressed store, hash-verified

4215// kickFlusher will send a bool on a channel to kick the
4216// flush Go routine to flush data to the server.
4217func (nc *Conn) kickFlusher() {
4218 if nc.bw != nil {
4219 select {
4220 case nc.fch <- struct{}{}:
4221 default:
4222 }
4223 }
4224}
4225
4226// Publish publishes the data argument to the given subject. The data
4227// argument is left untouched and needs to be correctly interpreted on

Callers 6

sendProtoMethod · 0.95
publishMethod · 0.95
subscribeLockedMethod · 0.95
unsubscribeMethod · 0.95
closeMethod · 0.95
resetOrderedConsumerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected