Skip to content

retrieveImage not callback #2437

@openman1992

Description

@openman1992

version 8.3.2

Hello, I am using ImagePrefetcher to preload images while simultaneously using retrieveImage. Both addresses are the same. In a multi-threaded environment, this may result in two sessionTasks being added via addDownloadTask. However, since the same downloader's sessionDelegate maintains a map of URLs to tasks, one task will eventually be overwritten, causing external callbacks to be lost. How should I use this library to avoid this issue? If I use two downloaders, it would lead to downloading the same image twice even under normal circumstances, which is not what I want. What should I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions