{"action":"created","issue":{"url":"https://api.github.com/repos/ArcRain/AMPhotoLibrary/issues/5","labels_url":"https://api.github.com/repos/ArcRain/AMPhotoLibrary/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/ArcRain/AMPhotoLibrary/issues/5/comments","events_url":"https://api.github.com/repos/ArcRain/AMPhotoLibrary/issues/5/events","html_url":"https://github.com/ArcRain/AMPhotoLibrary/issues/5","id":87667499,"number":5,"title":"mainThread","user":{"login":"mythodeia","id":1748458,"avatar_url":"https://avatars.githubusercontent.com/u/1748458?v=3","gravatar_id":"","url":"https://api.github.com/users/mythodeia","html_url":"https://github.com/mythodeia","followers_url":"https://api.github.com/users/mythodeia/followers","following_url":"https://api.github.com/users/mythodeia/following{/other_user}","gists_url":"https://api.github.com/users/mythodeia/gists{/gist_id}","starred_url":"https://api.github.com/users/mythodeia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mythodeia/subscriptions","organizations_url":"https://api.github.com/users/mythodeia/orgs","repos_url":"https://api.github.com/users/mythodeia/repos","events_url":"https://api.github.com/users/mythodeia/events{/privacy}","received_events_url":"https://api.github.com/users/mythodeia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-12T09:18:55Z","updated_at":"2015-06-12T10:01:34Z","closed_at":null,"body":"for the method \r\n``` - (void)enumerateAlbums:(AMPhotoManagerAlbumEnumerationBlock)enumerationBlock resultBlock:(AMPhotoManagerResultBlock)resultBlock{ ```\r\ni think the resultBlock should be sent on mainThread, right?\r\n```\r\n            dispatch_async(dispatch_get_main_queue(), ^{\r\n                resultBlock(success, error);\r\n            });\r\n```\r\nthanks for making this library available. Great work"},"comment":{"url":"https://api.github.com/repos/ArcRain/AMPhotoLibrary/issues/comments/111435015","html_url":"https://github.com/ArcRain/AMPhotoLibrary/issues/5#issuecomment-111435015","issue_url":"https://api.github.com/repos/ArcRain/AMPhotoLibrary/issues/5","id":111435015,"user":{"login":"mythodeia","id":1748458,"avatar_url":"https://avatars.githubusercontent.com/u/1748458?v=3","gravatar_id":"","url":"https://api.github.com/users/mythodeia","html_url":"https://github.com/mythodeia","followers_url":"https://api.github.com/users/mythodeia/followers","following_url":"https://api.github.com/users/mythodeia/following{/other_user}","gists_url":"https://api.github.com/users/mythodeia/gists{/gist_id}","starred_url":"https://api.github.com/users/mythodeia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mythodeia/subscriptions","organizations_url":"https://api.github.com/users/mythodeia/orgs","repos_url":"https://api.github.com/users/mythodeia/repos","events_url":"https://api.github.com/users/mythodeia/events{/privacy}","received_events_url":"https://api.github.com/users/mythodeia/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T10:01:34Z","updated_at":"2015-06-12T10:01:34Z","body":"ok , the only reason i mentioned this is because the result block of the method below will make updates to the UI, which is supposed to be done on mainThread.\r\n```\r\n [[AMPhotoLibrary sharedPhotoLibrary] enumerateAlbums:^(AMPhotoAlbum *album, BOOL *stop) {\r\n      [tempArray addObject: album];\r\n } resultBlock:^(BOOL success, NSError *error) {\r\n     // mainThread UI update\r\n}];\r\n```\r\n"}}