{"action":"closed","issue":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/18","labels_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/18/comments","events_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/18/events","html_url":"https://github.com/mxcl/PromiseKit/issues/18","id":32954791,"number":18,"title":"Canceling a promise","user":{"login":"dbachrach","id":45016,"avatar_url":"https://avatars.githubusercontent.com/u/45016?v=3","gravatar_id":"","url":"https://api.github.com/users/dbachrach","html_url":"https://github.com/dbachrach","followers_url":"https://api.github.com/users/dbachrach/followers","following_url":"https://api.github.com/users/dbachrach/following{/other_user}","gists_url":"https://api.github.com/users/dbachrach/gists{/gist_id}","starred_url":"https://api.github.com/users/dbachrach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbachrach/subscriptions","organizations_url":"https://api.github.com/users/dbachrach/orgs","repos_url":"https://api.github.com/users/dbachrach/repos","events_url":"https://api.github.com/users/dbachrach/events{/privacy}","received_events_url":"https://api.github.com/users/dbachrach/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mxcl/PromiseKit/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2014-05-07T04:32:01Z","updated_at":"2015-05-14T06:50:07Z","closed_at":"2015-05-14T06:50:07Z","body":"Consider an asynchronous HTTP GET method request that returns a promise:\r\n\r\n```\r\n- (Promise*)GET:(NSString*)path;\r\n```\r\n\r\nUsers of this API may want to cancel the underlying asynchronous work, the HTTP request. Currently PromiseKit does not allow cancelable promises.\r\n\r\nI've been looking into javascript promises and cancelation. There is some discussion in the A+ spec https://github.com/promises-aplus/cancellation-spec/issues\r\n\r\nAny thoughts on cancelation?"}}