{"action":"created","issue":{"url":"https://api.github.com/repos/ReactKit/SwiftTask/issues/51","labels_url":"https://api.github.com/repos/ReactKit/SwiftTask/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/ReactKit/SwiftTask/issues/51/comments","events_url":"https://api.github.com/repos/ReactKit/SwiftTask/issues/51/events","html_url":"https://github.com/ReactKit/SwiftTask/pull/51","id":120666268,"number":51,"title":"Add `on(success:failure:)` for adding side-effects.","user":{"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},"labels":[{"url":"https://api.github.com/repos/ReactKit/SwiftTask/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ReactKit/SwiftTask/milestones/6","html_url":"https://github.com/ReactKit/SwiftTask/milestones/4.1.0","labels_url":"https://api.github.com/repos/ReactKit/SwiftTask/milestones/6/labels","id":1446661,"number":6,"title":"4.1.0","description":"- `func on(success:failure:)`","creator":{"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},"open_issues":0,"closed_issues":2,"state":"open","created_at":"2015-12-06T22:54:36Z","updated_at":"2015-12-10T01:24:43Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-12-06T22:44:36Z","updated_at":"2015-12-10T14:54:50Z","closed_at":"2015-12-10T01:24:43Z","pull_request":{"url":"https://api.github.com/repos/ReactKit/SwiftTask/pulls/51","html_url":"https://github.com/ReactKit/SwiftTask/pull/51","diff_url":"https://github.com/ReactKit/SwiftTask/pull/51.diff","patch_url":"https://github.com/ReactKit/SwiftTask/pull/51.patch"},"body":"This is a new feature and improvement on #50 to add side-effects after completion (success or failure) of task.\r\n\r\nPlease see [SwiftTaskTests.swift#L425-L474] (https://github.com/ReactKit/SwiftTask/blob/c333c7daebaef504c4a797dfb82c5951f9545802/SwiftTaskTests/SwiftTaskTests.swift#L425-L474) for more detail.\r\n\r\n### Note\r\n\r\nUsing `Self` for returning value will fail in Xcode 7.0, but not in 7.1."},"comment":{"url":"https://api.github.com/repos/ReactKit/SwiftTask/issues/comments/163649237","html_url":"https://github.com/ReactKit/SwiftTask/pull/51#issuecomment-163649237","issue_url":"https://api.github.com/repos/ReactKit/SwiftTask/issues/51","id":163649237,"user":{"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},"created_at":"2015-12-10T14:54:50Z","updated_at":"2015-12-10T14:54:50Z","body":"Bumped [ver 4.1.0](https://github.com/ReactKit/SwiftTask/releases/tag/4.1.0). @tamamachi Thanks again!"}}