Skip to content

Successive setImage() calls #1646

Answered by onevcat
lukasrosenke asked this question in Q&A
Discussion options

You must be logged in to vote

If the download on the first call is through it uses the cached version for the second call (or atleast thats what iam assuming)

Yes, you are right on this.

What happens though, if the download/ caching process has not finished and a second call is made?

Kingfisher is clever enough to not download the same image multiple times, and it will remember the setting method of last image to use it.

For your case:

  1. The download request of the second call will not start since it is from the same URL and network setting. The retrieving image task will be added to Kingfisher for later use though.
  2. When the first download request finishes (either with a success value or failure), the data will be …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lukasrosenke
Comment options

Answer selected by lukasrosenke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants