StoreCancellation is a public method to store a cancellation function for an operation This allows cancellation functions to be stored immediately when operations are created, enabling cancellation of queued operations that haven't started processing yet.
(id string, cancelFunc context.CancelFunc)
| 442 | // This allows cancellation functions to be stored immediately when operations are created, |
| 443 | // enabling cancellation of queued operations that haven't started processing yet. |
| 444 | func (g *GalleryService) StoreCancellation(id string, cancelFunc context.CancelFunc) { |
| 445 | g.storeCancellation(id, cancelFunc) |
| 446 | } |
| 447 | |
| 448 | // removeCancellation removes a cancellation function when operation completes |
| 449 | func (g *GalleryService) removeCancellation(id string) { |
no test coverage detected