{"action":"created","issue":{"url":"https://api.github.com/repos/baconjs/bacon.js/issues/546","labels_url":"https://api.github.com/repos/baconjs/bacon.js/issues/546/labels{/name}","comments_url":"https://api.github.com/repos/baconjs/bacon.js/issues/546/comments","events_url":"https://api.github.com/repos/baconjs/bacon.js/issues/546/events","html_url":"https://github.com/baconjs/bacon.js/issues/546","id":57639486,"number":546,"title":"takeUntil does not stop listening on synchronously-emitting stream","user":{"login":"AgentME","id":577345,"avatar_url":"https://avatars.githubusercontent.com/u/577345?v=3","gravatar_id":"","url":"https://api.github.com/users/AgentME","html_url":"https://github.com/AgentME","followers_url":"https://api.github.com/users/AgentME/followers","following_url":"https://api.github.com/users/AgentME/following{/other_user}","gists_url":"https://api.github.com/users/AgentME/gists{/gist_id}","starred_url":"https://api.github.com/users/AgentME/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgentME/subscriptions","organizations_url":"https://api.github.com/users/AgentME/orgs","repos_url":"https://api.github.com/users/AgentME/repos","events_url":"https://api.github.com/users/AgentME/events{/privacy}","received_events_url":"https://api.github.com/users/AgentME/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-13T19:02:37Z","updated_at":"2015-02-14T07:51:42Z","closed_at":null,"body":"```javascript\r\nvar Bacon = require('baconjs');\r\n\r\nfunction makeStream() {\r\n  return Bacon.fromBinder(function(sink) {\r\n    console.log('subbed');\r\n    sink(1);\r\n    return function() {\r\n      console.log('unsubbed');\r\n    };\r\n  });\r\n}\r\n\r\nvar stream = Bacon.later(50, 'beep');\r\n\r\nstream.takeUntil(makeStream()).log('::stream::');\r\n```\r\n\r\nThe output is:\r\n```\r\nsubbed\r\n::stream:: <end>\r\n```\r\n\r\n\"unsubbed\" should be in there somewhere."},"comment":{"url":"https://api.github.com/repos/baconjs/bacon.js/issues/comments/74366062","html_url":"https://github.com/baconjs/bacon.js/issues/546#issuecomment-74366062","issue_url":"https://api.github.com/repos/baconjs/bacon.js/issues/546","id":74366062,"user":{"login":"raimohanska","id":292964,"avatar_url":"https://avatars.githubusercontent.com/u/292964?v=3","gravatar_id":"","url":"https://api.github.com/users/raimohanska","html_url":"https://github.com/raimohanska","followers_url":"https://api.github.com/users/raimohanska/followers","following_url":"https://api.github.com/users/raimohanska/following{/other_user}","gists_url":"https://api.github.com/users/raimohanska/gists{/gist_id}","starred_url":"https://api.github.com/users/raimohanska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raimohanska/subscriptions","organizations_url":"https://api.github.com/users/raimohanska/orgs","repos_url":"https://api.github.com/users/raimohanska/repos","events_url":"https://api.github.com/users/raimohanska/events{/privacy}","received_events_url":"https://api.github.com/users/raimohanska/received_events","type":"User","site_admin":false},"created_at":"2015-02-14T07:51:42Z","updated_at":"2015-02-14T07:51:42Z","body":"Maybe? Wanna try an pr?"}}