MCPcopy Index your code
hub / github.com/coder/websocket / clearReadTimeout

Method clearReadTimeout

conn.go:201–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199}
200
201func (c *Conn) clearReadTimeout() {
202 swapTimeoutStop(&c.readTimeoutStop, nil)
203}
204
205func swapTimeoutStop(p *atomic.Pointer[func() bool], newStop *func() bool) {
206 oldStop := p.Swap(newStop)

Callers 3

setupReadTimeoutMethod · 0.95
prepareReadMethod · 0.95
finishReadMethod · 0.95

Calls 1

swapTimeoutStopFunction · 0.85

Tested by

no test coverage detected