MCPcopy
hub / github.com/coder/websocket / swapTimeoutStop

Function swapTimeoutStop

conn.go:205–210  ·  view source on GitHub ↗
(p *atomic.Pointer[func() bool], newStop *func() bool)

Source from the content-addressed store, hash-verified

203}
204
205func swapTimeoutStop(p *atomic.Pointer[func() bool], newStop *func() bool) {
206 oldStop := p.Swap(newStop)
207 if oldStop != nil {
208 (*oldStop)()
209 }
210}
211
212func (c *Conn) flate() bool {
213 return c.copts != nil

Callers 4

setupWriteTimeoutMethod · 0.85
clearWriteTimeoutMethod · 0.85
setupReadTimeoutMethod · 0.85
clearReadTimeoutMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…