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

Method Close

imagedata/image_data.go:92–101  ·  view source on GitHub ↗

Close closes the response body (hence, response) and the async buffer itself

()

Source from the content-addressed store, hash-verified

90
91// Close closes the response body (hence, response) and the async buffer itself
92func (d *imageDataAsyncBuffer) Close() error {
93 d.cancelOnce.Do(func() {
94 d.b.Close()
95 for _, cancel := range d.cancel {
96 cancel()
97 }
98 })
99
100 return nil
101}
102
103// Format returns the image format from the metadata
104func (d *imageDataAsyncBuffer) Format() imagetype.Type {

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected