-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UIImageView extension #7
Conversation
return | ||
} | ||
|
||
guard let image = UIImage.decode(data) else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think decompression is on the main thread now 💭
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked that, the thing is that the task resolves in a random thread every time, so we are good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it's a main queue 😱
Why that? 😄 |
I guess it needs further testing in terms of the flashing of the images that we had, but here are some tests with Bad Internet connection and with WiFi:
The flow was this one:
You create a task, you add it to the dictionary, it exists, so you cancel the task, this task completes and then it gives an error, in the closure, done in the background, it removes the value of the task from the dictionary, for some reason that was causing errors since this task was still going on or something, it seems to work, but I'd like further test.