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

Method Error

asyncbuffer/buffer.go:184–196  ·  view source on GitHub ↗

Error returns the error that occurred during reading data in background.

()

Source from the content-addressed store, hash-verified

182
183// Error returns the error that occurred during reading data in background.
184func (ab *AsyncBuffer) Error() error {
185 err := ab.err.Load()
186 if err == nil {
187 return nil
188 }
189
190 errCast, ok := err.(error)
191 if !ok {
192 return errors.New("asyncbuffer.AsyncBuffer.Error: failed to get error")
193 }
194
195 return errCast
196}
197
198// Close closes the AsyncBuffer and releases all resources. It is idempotent.
199func (ab *AsyncBuffer) Close() error {

Callers 4

NewReadFullFunction · 0.95
WaitMethod · 0.95
closedErrorMethod · 0.95
offsetAvailableMethod · 0.95

Calls 1

LoadMethod · 0.80

Tested by

no test coverage detected