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

Method callFinishFn

asyncbuffer/buffer.go:302–310  ·  view source on GitHub ↗

callFinishFn calls the finish functions registered with the AsyncBuffer.

()

Source from the content-addressed store, hash-verified

300
301// callFinishFn calls the finish functions registered with the AsyncBuffer.
302func (ab *AsyncBuffer) callFinishFn() {
303 ab.finishOnce.Do(func() {
304 for _, fn := range ab.finishFn {
305 if fn != nil {
306 fn()
307 }
308 }
309 })
310}
311
312func (ab *AsyncBuffer) setErr(err error) {
313 if err == nil {

Callers 2

CloseMethod · 0.95
readChunksMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected