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

Method AddCancel

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

Error returns any error that occurred during reading data from source AddCancel attaches a cancel function to the image data. Please note that Cancel functions must be idempotent: for instance, an implementation could wrap cancel into sync.Once.

(cancel context.CancelFunc)

Source from the content-addressed store, hash-verified

28 // Please note that Cancel functions must be idempotent: for instance, an implementation
29 // could wrap cancel into sync.Once.
30 AddCancel(cancel context.CancelFunc)
31}
32
33// imageDataBytes represents image data stored in a byte slice in memory

Callers 3

SaveMethod · 0.65
DownloadSyncMethod · 0.65
sanitizeMethod · 0.65

Implementers 2

imageDataBytesimagedata/image_data.go
imageDataAsyncBufferimagedata/image_data.go

Calls

no outgoing calls

Tested by

no test coverage detected