onevcat / Kingfisher

A lightweight, pure-Swift library for downloading and caching images from the web.
MIT License
23.1k stars 2.64k forks source link

Unable to cancel task if an image has a custom Image Processor #2276

Open oillada opened 1 month ago

oillada commented 1 month ago

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

Issue Description

I'm trying to cancel a download task for an image, but when I use a custom processors, there is no task available to cancel. However, when I try with images without processors, the download task appears and can be canceled.

Reproduce

Try to cancel a request with an image processor apply to it.

Other Comment

I know that process identifiers are used for cache management; otherwise, the image is not removed. However, in this case, none of the methods receive a process ID.

onevcat commented 4 weeks ago

@oillada Thanks for reporting this.

May I know which processor or what kind of processor you are using? Some code snippet or reproducible steps may help to understand the issue better.