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

Method doneWithConnect

nats.go:2259–2263  ·  view source on GitHub ↗

Notify the reader that we are done with the connect, where "read" operations happen synchronously and under the connection lock. After this point, "read" will be happening from the read loop, without the connection lock. Note: this runs under the connection lock.

()

Source from the content-addressed store, hash-verified

2257//
2258// Note: this runs under the connection lock.
2259func (r *natsReader) doneWithConnect() {
2260 if wsr, ok := r.r.(*websocketReader); ok {
2261 wsr.doneWithConnect()
2262 }
2263}
2264
2265func (r *natsReader) Read() ([]byte, error) {
2266 if r.off >= 0 {

Callers 1

processConnectInitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected