Skip to content

Specify download priority in downloadImageWithUrl? #262

@yxztj

Description

@yxztj

Currently it's not possible to set task priority when calling downloadImageWithUrl. Can we add another parameter for priority in the API, instead of setting it separately after creating the download task?

Background: We have a long tableView with lots of images, each cell contains random static image or gif image(also load it's first frame as placeholder. gif task priority is changed dynamically based on cell's state and is always lower than static images). When scrolling fast usually there would be a lot of concurrent tasks in manager's _concurrentOperationQueue. Currently changing priority would add another operation to the queue and enumerate all running tasks to find the specified download task, which takes time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions