AddCancel attaches a cancel function to the image data
(cancel context.CancelFunc)
| 113 | |
| 114 | // AddCancel attaches a cancel function to the image data |
| 115 | func (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. |