{"action":"closed","issue":{"url":"https://api.github.com/repos/ibireme/YYWebImage/issues/79","repository_url":"https://api.github.com/repos/ibireme/YYWebImage","labels_url":"https://api.github.com/repos/ibireme/YYWebImage/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/ibireme/YYWebImage/issues/79/comments","events_url":"https://api.github.com/repos/ibireme/YYWebImage/issues/79/events","html_url":"https://github.com/ibireme/YYWebImage/issues/79","id":143658400,"number":79,"title":"用yy_cancelCurrentImageRequest取消当前图片的请求似乎不起作用","user":{"login":"ufosky","id":801838,"avatar_url":"https://avatars.githubusercontent.com/u/801838?v=3","gravatar_id":"","url":"https://api.github.com/users/ufosky","html_url":"https://github.com/ufosky","followers_url":"https://api.github.com/users/ufosky/followers","following_url":"https://api.github.com/users/ufosky/following{/other_user}","gists_url":"https://api.github.com/users/ufosky/gists{/gist_id}","starred_url":"https://api.github.com/users/ufosky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ufosky/subscriptions","organizations_url":"https://api.github.com/users/ufosky/orgs","repos_url":"https://api.github.com/users/ufosky/repos","events_url":"https://api.github.com/users/ufosky/events{/privacy}","received_events_url":"https://api.github.com/users/ufosky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ibireme/YYWebImage/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-26T03:13:23Z","updated_at":"2016-03-28T04:14:37Z","closed_at":"2016-03-28T04:14:37Z","body":"我在UICollectionViewCell里面用下面代码加载图片\r\n```\r\n[imageView yy_setImageWithURL:[NSURL URLWithString:avatarUrl] placeholder:[UIImage imageNamed:@\"ic_message_del_robot\"] options:YYWebImageOptionAvoidSetImage progress:nil transform:nil completion:^(UIImage * _Nullable image, NSURL * _Nonnull url, YYWebImageFromType from, YYWebImageStage stage, NSError * _Nullable error) {\r\n  if (!error && stage == YYWebImageStageFinished) {\r\n    imageView.image = image;\r\n    imageView.backgroundColor = [UIColor clearColor];\r\n  }\r\n}];\r\n```\r\n在prepareForReuse里面取消加载\r\n```\r\n[imageView yy_cancelCurrentImageRequest];\r\n```\r\n可是我发现有时候一个图片已经取消了结果还是得到回调了，在网络慢的时候就有可能出现前一个图片已经取消，结果在后一个图片回调之后运行前一个图片的回调，结果就是图片错了"}}