{"action":"closed","number":74,"pull_request":{"url":"https://api.github.com/repos/ReactKit/SwiftTask/pulls/74","id":80010758,"html_url":"https://github.com/ReactKit/SwiftTask/pull/74","diff_url":"https://github.com/ReactKit/SwiftTask/pull/74.diff","patch_url":"https://github.com/ReactKit/SwiftTask/pull/74.patch","issue_url":"https://api.github.com/repos/ReactKit/SwiftTask/issues/74","number":74,"state":"closed","locked":false,"title":"Add retry(_:condition:) method.","user":{"login":"r-plus","id":425216,"avatar_url":"https://avatars.githubusercontent.com/u/425216?v=3","gravatar_id":"","url":"https://api.github.com/users/r-plus","html_url":"https://github.com/r-plus","followers_url":"https://api.github.com/users/r-plus/followers","following_url":"https://api.github.com/users/r-plus/following{/other_user}","gists_url":"https://api.github.com/users/r-plus/gists{/gist_id}","starred_url":"https://api.github.com/users/r-plus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-plus/subscriptions","organizations_url":"https://api.github.com/users/r-plus/orgs","repos_url":"https://api.github.com/users/r-plus/repos","events_url":"https://api.github.com/users/r-plus/events{/privacy}","received_events_url":"https://api.github.com/users/r-plus/received_events","type":"User","site_admin":false},"body":"Hi, I want conditional retryable feature.\r\nIn my use case, I want retry failed task with date time predication like this.\r\n\r\n```\r\ntask.retry(5) { () -> Bool in\r\n  let now = NSDate()\r\n  return now.compare(expireDate) == .OrderedAscending\r\n}.success { (value) -> Void in\r\n ...\r\n```\r\n\r\nWhat do you think about this?","created_at":"2016-08-04T02:47:56Z","updated_at":"2016-08-05T01:00:52Z","closed_at":"2016-08-05T01:00:52Z","merged_at":"2016-08-05T01:00:52Z","merge_commit_sha":"3c602a5d5714ee487f8224aba456956502b10901","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ReactKit/SwiftTask/pulls/74/commits","review_comments_url":"https://api.github.com/repos/ReactKit/SwiftTask/pulls/74/comments","review_comment_url":"https://api.github.com/repos/ReactKit/SwiftTask/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ReactKit/SwiftTask/issues/74/comments","statuses_url":"https://api.github.com/repos/ReactKit/SwiftTask/statuses/42b6e904ed15bb72d4a4bbf0945ff4f3bfbfb519","head":{"label":"r-plus:retry+condition","ref":"retry+condition","sha":"42b6e904ed15bb72d4a4bbf0945ff4f3bfbfb519","user":{"login":"r-plus","id":425216,"avatar_url":"https://avatars.githubusercontent.com/u/425216?v=3","gravatar_id":"","url":"https://api.github.com/users/r-plus","html_url":"https://github.com/r-plus","followers_url":"https://api.github.com/users/r-plus/followers","following_url":"https://api.github.com/users/r-plus/following{/other_user}","gists_url":"https://api.github.com/users/r-plus/gists{/gist_id}","starred_url":"https://api.github.com/users/r-plus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-plus/subscriptions","organizations_url":"https://api.github.com/users/r-plus/orgs","repos_url":"https://api.github.com/users/r-plus/repos","events_url":"https://api.github.com/users/r-plus/events{/privacy}","received_events_url":"https://api.github.com/users/r-plus/received_events","type":"User","site_admin":false},"repo":{"id":64895227,"name":"SwiftTask","full_name":"r-plus/SwiftTask","owner":{"login":"r-plus","id":425216,"avatar_url":"https://avatars.githubusercontent.com/u/425216?v=3","gravatar_id":"","url":"https://api.github.com/users/r-plus","html_url":"https://github.com/r-plus","followers_url":"https://api.github.com/users/r-plus/followers","following_url":"https://api.github.com/users/r-plus/following{/other_user}","gists_url":"https://api.github.com/users/r-plus/gists{/gist_id}","starred_url":"https://api.github.com/users/r-plus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-plus/subscriptions","organizations_url":"https://api.github.com/users/r-plus/orgs","repos_url":"https://api.github.com/users/r-plus/repos","events_url":"https://api.github.com/users/r-plus/events{/privacy}","received_events_url":"https://api.github.com/users/r-plus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/r-plus/SwiftTask","description":"Promise + progress + pause + cancel + retry for Swift.","fork":true,"url":"https://api.github.com/repos/r-plus/SwiftTask","forks_url":"https://api.github.com/repos/r-plus/SwiftTask/forks","keys_url":"https://api.github.com/repos/r-plus/SwiftTask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/r-plus/SwiftTask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/r-plus/SwiftTask/teams","hooks_url":"https://api.github.com/repos/r-plus/SwiftTask/hooks","issue_events_url":"https://api.github.com/repos/r-plus/SwiftTask/issues/events{/number}","events_url":"https://api.github.com/repos/r-plus/SwiftTask/events","assignees_url":"https://api.github.com/repos/r-plus/SwiftTask/assignees{/user}","branches_url":"https://api.github.com/repos/r-plus/SwiftTask/branches{/branch}","tags_url":"https://api.github.com/repos/r-plus/SwiftTask/tags","blobs_url":"https://api.github.com/repos/r-plus/SwiftTask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/r-plus/SwiftTask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/r-plus/SwiftTask/git/refs{/sha}","trees_url":"https://api.github.com/repos/r-plus/SwiftTask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/r-plus/SwiftTask/statuses/{sha}","languages_url":"https://api.github.com/repos/r-plus/SwiftTask/languages","stargazers_url":"https://api.github.com/repos/r-plus/SwiftTask/stargazers","contributors_url":"https://api.github.com/repos/r-plus/SwiftTask/contributors","subscribers_url":"https://api.github.com/repos/r-plus/SwiftTask/subscribers","subscription_url":"https://api.github.com/repos/r-plus/SwiftTask/subscription","commits_url":"https://api.github.com/repos/r-plus/SwiftTask/commits{/sha}","git_commits_url":"https://api.github.com/repos/r-plus/SwiftTask/git/commits{/sha}","comments_url":"https://api.github.com/repos/r-plus/SwiftTask/comments{/number}","issue_comment_url":"https://api.github.com/repos/r-plus/SwiftTask/issues/comments{/number}","contents_url":"https://api.github.com/repos/r-plus/SwiftTask/contents/{+path}","compare_url":"https://api.github.com/repos/r-plus/SwiftTask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/r-plus/SwiftTask/merges","archive_url":"https://api.github.com/repos/r-plus/SwiftTask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/r-plus/SwiftTask/downloads","issues_url":"https://api.github.com/repos/r-plus/SwiftTask/issues{/number}","pulls_url":"https://api.github.com/repos/r-plus/SwiftTask/pulls{/number}","milestones_url":"https://api.github.com/repos/r-plus/SwiftTask/milestones{/number}","notifications_url":"https://api.github.com/repos/r-plus/SwiftTask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/r-plus/SwiftTask/labels{/name}","releases_url":"https://api.github.com/repos/r-plus/SwiftTask/releases{/id}","deployments_url":"https://api.github.com/repos/r-plus/SwiftTask/deployments","created_at":"2016-08-04T02:27:01Z","updated_at":"2016-08-04T02:27:02Z","pushed_at":"2016-08-04T16:30:36Z","git_url":"git://github.com/r-plus/SwiftTask.git","ssh_url":"git@github.com:r-plus/SwiftTask.git","clone_url":"https://github.com/r-plus/SwiftTask.git","svn_url":"https://github.com/r-plus/SwiftTask","homepage":"","size":547,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"swift/2.2"}},"base":{"label":"ReactKit:swift/2.2","ref":"swift/2.2","sha":"d8f6fa3ff4889b8ed6d7280e246078cc0ab30337","user":{"login":"ReactKit","id":8986128,"avatar_url":"https://avatars.githubusercontent.com/u/8986128?v=3","gravatar_id":"","url":"https://api.github.com/users/ReactKit","html_url":"https://github.com/ReactKit","followers_url":"https://api.github.com/users/ReactKit/followers","following_url":"https://api.github.com/users/ReactKit/following{/other_user}","gists_url":"https://api.github.com/users/ReactKit/gists{/gist_id}","starred_url":"https://api.github.com/users/ReactKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReactKit/subscriptions","organizations_url":"https://api.github.com/users/ReactKit/orgs","repos_url":"https://api.github.com/users/ReactKit/repos","events_url":"https://api.github.com/users/ReactKit/events{/privacy}","received_events_url":"https://api.github.com/users/ReactKit/received_events","type":"Organization","site_admin":false},"repo":{"id":23256663,"name":"SwiftTask","full_name":"ReactKit/SwiftTask","owner":{"login":"ReactKit","id":8986128,"avatar_url":"https://avatars.githubusercontent.com/u/8986128?v=3","gravatar_id":"","url":"https://api.github.com/users/ReactKit","html_url":"https://github.com/ReactKit","followers_url":"https://api.github.com/users/ReactKit/followers","following_url":"https://api.github.com/users/ReactKit/following{/other_user}","gists_url":"https://api.github.com/users/ReactKit/gists{/gist_id}","starred_url":"https://api.github.com/users/ReactKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReactKit/subscriptions","organizations_url":"https://api.github.com/users/ReactKit/orgs","repos_url":"https://api.github.com/users/ReactKit/repos","events_url":"https://api.github.com/users/ReactKit/events{/privacy}","received_events_url":"https://api.github.com/users/ReactKit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ReactKit/SwiftTask","description":"Promise + progress + pause + cancel + retry for Swift.","fork":false,"url":"https://api.github.com/repos/ReactKit/SwiftTask","forks_url":"https://api.github.com/repos/ReactKit/SwiftTask/forks","keys_url":"https://api.github.com/repos/ReactKit/SwiftTask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ReactKit/SwiftTask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ReactKit/SwiftTask/teams","hooks_url":"https://api.github.com/repos/ReactKit/SwiftTask/hooks","issue_events_url":"https://api.github.com/repos/ReactKit/SwiftTask/issues/events{/number}","events_url":"https://api.github.com/repos/ReactKit/SwiftTask/events","assignees_url":"https://api.github.com/repos/ReactKit/SwiftTask/assignees{/user}","branches_url":"https://api.github.com/repos/ReactKit/SwiftTask/branches{/branch}","tags_url":"https://api.github.com/repos/ReactKit/SwiftTask/tags","blobs_url":"https://api.github.com/repos/ReactKit/SwiftTask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ReactKit/SwiftTask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ReactKit/SwiftTask/git/refs{/sha}","trees_url":"https://api.github.com/repos/ReactKit/SwiftTask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ReactKit/SwiftTask/statuses/{sha}","languages_url":"https://api.github.com/repos/ReactKit/SwiftTask/languages","stargazers_url":"https://api.github.com/repos/ReactKit/SwiftTask/stargazers","contributors_url":"https://api.github.com/repos/ReactKit/SwiftTask/contributors","subscribers_url":"https://api.github.com/repos/ReactKit/SwiftTask/subscribers","subscription_url":"https://api.github.com/repos/ReactKit/SwiftTask/subscription","commits_url":"https://api.github.com/repos/ReactKit/SwiftTask/commits{/sha}","git_commits_url":"https://api.github.com/repos/ReactKit/SwiftTask/git/commits{/sha}","comments_url":"https://api.github.com/repos/ReactKit/SwiftTask/comments{/number}","issue_comment_url":"https://api.github.com/repos/ReactKit/SwiftTask/issues/comments{/number}","contents_url":"https://api.github.com/repos/ReactKit/SwiftTask/contents/{+path}","compare_url":"https://api.github.com/repos/ReactKit/SwiftTask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ReactKit/SwiftTask/merges","archive_url":"https://api.github.com/repos/ReactKit/SwiftTask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ReactKit/SwiftTask/downloads","issues_url":"https://api.github.com/repos/ReactKit/SwiftTask/issues{/number}","pulls_url":"https://api.github.com/repos/ReactKit/SwiftTask/pulls{/number}","milestones_url":"https://api.github.com/repos/ReactKit/SwiftTask/milestones{/number}","notifications_url":"https://api.github.com/repos/ReactKit/SwiftTask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ReactKit/SwiftTask/labels{/name}","releases_url":"https://api.github.com/repos/ReactKit/SwiftTask/releases{/id}","deployments_url":"https://api.github.com/repos/ReactKit/SwiftTask/deployments","created_at":"2014-08-23T13:39:12Z","updated_at":"2016-08-04T16:11:37Z","pushed_at":"2016-08-05T01:00:52Z","git_url":"git://github.com/ReactKit/SwiftTask.git","ssh_url":"git@github.com:ReactKit/SwiftTask.git","clone_url":"https://github.com/ReactKit/SwiftTask.git","svn_url":"https://github.com/ReactKit/SwiftTask","homepage":"","size":669,"stargazers_count":1506,"watchers_count":1506,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":4,"forks":107,"open_issues":4,"watchers":1506,"default_branch":"swift/2.2"}},"_links":{"self":{"href":"https://api.github.com/repos/ReactKit/SwiftTask/pulls/74"},"html":{"href":"https://github.com/ReactKit/SwiftTask/pull/74"},"issue":{"href":"https://api.github.com/repos/ReactKit/SwiftTask/issues/74"},"comments":{"href":"https://api.github.com/repos/ReactKit/SwiftTask/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/ReactKit/SwiftTask/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/ReactKit/SwiftTask/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ReactKit/SwiftTask/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/ReactKit/SwiftTask/statuses/42b6e904ed15bb72d4a4bbf0945ff4f3bfbfb519"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"inamiy","id":138476,"avatar_url":"https://avatars.githubusercontent.com/u/138476?v=3","gravatar_id":"","url":"https://api.github.com/users/inamiy","html_url":"https://github.com/inamiy","followers_url":"https://api.github.com/users/inamiy/followers","following_url":"https://api.github.com/users/inamiy/following{/other_user}","gists_url":"https://api.github.com/users/inamiy/gists{/gist_id}","starred_url":"https://api.github.com/users/inamiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inamiy/subscriptions","organizations_url":"https://api.github.com/users/inamiy/orgs","repos_url":"https://api.github.com/users/inamiy/repos","events_url":"https://api.github.com/users/inamiy/events{/privacy}","received_events_url":"https://api.github.com/users/inamiy/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":4,"additions":55,"deletions":6,"changed_files":2}}
{"actor":{"display_login":"inamiy"}}