{"action":"created","issue":{"url":"https://api.github.com/repos/christianalfoni/cerebral/issues/29","labels_url":"https://api.github.com/repos/christianalfoni/cerebral/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/christianalfoni/cerebral/issues/29/comments","events_url":"https://api.github.com/repos/christianalfoni/cerebral/issues/29/events","html_url":"https://github.com/christianalfoni/cerebral/issues/29","id":90161954,"number":29,"title":"Abort signal chain?","user":{"login":"marbemac","id":847542,"avatar_url":"https://avatars.githubusercontent.com/u/847542?v=3","gravatar_id":"","url":"https://api.github.com/users/marbemac","html_url":"https://github.com/marbemac","followers_url":"https://api.github.com/users/marbemac/followers","following_url":"https://api.github.com/users/marbemac/following{/other_user}","gists_url":"https://api.github.com/users/marbemac/gists{/gist_id}","starred_url":"https://api.github.com/users/marbemac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marbemac/subscriptions","organizations_url":"https://api.github.com/users/marbemac/orgs","repos_url":"https://api.github.com/users/marbemac/repos","events_url":"https://api.github.com/users/marbemac/events{/privacy}","received_events_url":"https://api.github.com/users/marbemac/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/christianalfoni/cerebral/labels/next%20release","name":"next release","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-22T17:33:20Z","updated_at":"2015-06-23T16:42:52Z","closed_at":null,"body":"Is there a way to abort a signal chain? I have a register signal, that tries to register the user, and then after that it logs them in. If the register fails, I don't want to continue down the signal chain. Another option is the ability to call signals from within signals, but this seems like a less than ideal solution that would make it harder to reason about signal chains and how they flow."},"comment":{"url":"https://api.github.com/repos/christianalfoni/cerebral/issues/comments/114566941","html_url":"https://github.com/christianalfoni/cerebral/issues/29#issuecomment-114566941","issue_url":"https://api.github.com/repos/christianalfoni/cerebral/issues/29","id":114566941,"user":{"login":"JosephClay","id":4593699,"avatar_url":"https://avatars.githubusercontent.com/u/4593699?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephClay","html_url":"https://github.com/JosephClay","followers_url":"https://api.github.com/users/JosephClay/followers","following_url":"https://api.github.com/users/JosephClay/following{/other_user}","gists_url":"https://api.github.com/users/JosephClay/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephClay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephClay/subscriptions","organizations_url":"https://api.github.com/users/JosephClay/orgs","repos_url":"https://api.github.com/users/JosephClay/repos","events_url":"https://api.github.com/users/JosephClay/events{/privacy}","received_events_url":"https://api.github.com/users/JosephClay/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T16:42:52Z","updated_at":"2015-06-23T16:42:52Z","body":"@marbemac The current system could still work with non-async actions by returning [`Promise.reject()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/reject)\r\n\r\n@christianalfoni Would *not* declaring a `reject` short circuit the chain then? e.g.:\r\n```js\r\ncerebral.signal('foo',\r\n    doSomething,\r\n    {\r\n      resolve: [...] // if this errors/rejects....\r\n    },\r\n    somethingElse // ...this would not be called\r\n);\r\n```"}}