You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to remove the image from image cache using removeImageForRequest method of ImageCache. Although it performs the necessary work and delete the image from cache but it always returns false.
I think the issue is with dispatch_async_barrier block. Because the piece of code in it runs asynchronously hence it always return false.
Please fix this issue as it doesn't return true value when it has removed the image.
The text was updated successfully, but these errors were encountered:
Thanks for reporting @asifbilal786. It was definitely wrong. I've pushed a fix in 6be1da8 which is part of #154. I've also added tests to verify the return value now works as expected.
I'm going to close this issue out. Please redirect all further comments to #154.
The changes are still in review. Once we get it merged, we're going to release AF 4.0.0-beta.1 and AFI 3.0.0-beta.1. If you need to pull the changes in before, you can always point directly to the beta6 branch in #154.
I am trying to remove the image from image cache using removeImageForRequest method of ImageCache. Although it performs the necessary work and delete the image from cache but it always returns false.
I think the issue is with dispatch_async_barrier block. Because the piece of code in it runs asynchronously hence it always return false.
Please fix this issue as it doesn't return true value when it has removed the image.
The text was updated successfully, but these errors were encountered: