MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Close

Method Close

asyncbuffer/cond.go:71–81  ·  view source on GitHub ↗

Close closes the ticker channel and prevents further ticks.

()

Source from the content-addressed store, hash-verified

69
70// Close closes the ticker channel and prevents further ticks.
71func (t *Cond) Close() {
72 t.closeOnce.Do(func() {
73 t.mu.Lock()
74 defer t.mu.Unlock()
75
76 if t.ch != nil {
77 close(t.ch)
78 t.ch = nil
79 }
80 })
81}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected