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

Method AddCancel

imagedata/image_data.go:115–117  ·  view source on GitHub ↗

AddCancel attaches a cancel function to the image data

(cancel context.CancelFunc)

Source from the content-addressed store, hash-verified

113
114// AddCancel attaches a cancel function to the image data
115func (d *imageDataAsyncBuffer) AddCancel(cancel context.CancelFunc) {
116 d.cancel = append(d.cancel, cancel)
117}
118
119// Error returns any error that occurred during reading data from
120// async buffer or the underlying source.

Callers 1

DownloadAsyncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected