{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/1818","labels_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/1818/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/1818/comments","events_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/1818/events","html_url":"https://github.com/ReactiveCocoa/ReactiveCocoa/issues/1818","id":60483563,"number":1818,"title":"Subscribing without any action","user":{"login":"3-n","id":877198,"avatar_url":"https://avatars.githubusercontent.com/u/877198?v=3","gravatar_id":"","url":"https://api.github.com/users/3-n","html_url":"https://github.com/3-n","followers_url":"https://api.github.com/users/3-n/followers","following_url":"https://api.github.com/users/3-n/following{/other_user}","gists_url":"https://api.github.com/users/3-n/gists{/gist_id}","starred_url":"https://api.github.com/users/3-n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3-n/subscriptions","organizations_url":"https://api.github.com/users/3-n/orgs","repos_url":"https://api.github.com/users/3-n/repos","events_url":"https://api.github.com/users/3-n/events{/privacy}","received_events_url":"https://api.github.com/users/3-n/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-10T11:11:54Z","updated_at":"2015-03-13T14:26:31Z","closed_at":"2015-03-13T14:26:31Z","body":"Disclaimer: ReactiveCocoa beginner here ;)\r\n\r\nI'm producing a custom signal in my class that has some default side effects via `doNext`. Signal is what I believe is called a cold signal - i.e. it merges underlying signals, performs some processing and returns a new signal. \r\nIn most cases consumers of the class don't have to perform any action besides the default one \"happening\" inside `customSignal`. However, without subscription via `subscribeNext` signal won't fire. So I end up littering the consumers in:\r\n```objective-c\r\n[[self.property customSignal] subscribeNext:^(id x) {\r\n    // nothing more than default side effect\r\n}];\r\n```\r\nCannot not subscribe. Cannot subscribe with a nil block. Cannot find any alternative. Trying to wrap my head around this and do it *the right way*. \r\n\r\nDo I have to live with repating that, or is there a better approach? Or maybe I still didn't grok Reactive enough & I'm doing something wrong?"},"comment":{"url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/comments/78994985","html_url":"https://github.com/ReactiveCocoa/ReactiveCocoa/issues/1818#issuecomment-78994985","issue_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/1818","id":78994985,"user":{"login":"3-n","id":877198,"avatar_url":"https://avatars.githubusercontent.com/u/877198?v=3","gravatar_id":"","url":"https://api.github.com/users/3-n","html_url":"https://github.com/3-n","followers_url":"https://api.github.com/users/3-n/followers","following_url":"https://api.github.com/users/3-n/following{/other_user}","gists_url":"https://api.github.com/users/3-n/gists{/gist_id}","starred_url":"https://api.github.com/users/3-n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3-n/subscriptions","organizations_url":"https://api.github.com/users/3-n/orgs","repos_url":"https://api.github.com/users/3-n/repos","events_url":"https://api.github.com/users/3-n/events{/privacy}","received_events_url":"https://api.github.com/users/3-n/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T14:26:31Z","updated_at":"2015-03-13T14:26:31Z","body":"I feel like implicitly self-subscribing like this is what was missing in my mindset. It's so clean and simple when already discovered :D\r\n\r\nThanks a lot!"}}