{"action":"closed","issue":{"url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4888","repository_url":"https://api.github.com/repos/ReactiveX/RxJava","labels_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4888/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4888/comments","events_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4888/events","html_url":"https://github.com/ReactiveX/RxJava/issues/4888","id":191963138,"number":4888,"title":"Should a disposed ConnectableObservable replay() still emit?","user":{"login":"Mauin","id":6169809,"avatar_url":"https://avatars.githubusercontent.com/u/6169809?v=3","gravatar_id":"","url":"https://api.github.com/users/Mauin","html_url":"https://github.com/Mauin","followers_url":"https://api.github.com/users/Mauin/followers","following_url":"https://api.github.com/users/Mauin/following{/other_user}","gists_url":"https://api.github.com/users/Mauin/gists{/gist_id}","starred_url":"https://api.github.com/users/Mauin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mauin/subscriptions","organizations_url":"https://api.github.com/users/Mauin/orgs","repos_url":"https://api.github.com/users/Mauin/repos","events_url":"https://api.github.com/users/Mauin/events{/privacy}","received_events_url":"https://api.github.com/users/Mauin/received_events","type":"User","site_admin":false},"labels":[{"id":480313802,"url":"https://api.github.com/repos/ReactiveX/RxJava/labels/2.x","name":"2.x","color":"af40af","default":false},{"id":24234455,"url":"https://api.github.com/repos/ReactiveX/RxJava/labels/Question","name":"Question","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-28T10:00:15Z","updated_at":"2016-11-28T12:05:55Z","closed_at":"2016-11-28T12:05:55Z","body":"I have this test which passes, but I initially expected it (in particular the 2nd `test`) to fail:\r\n\r\n```java\r\n@Test\r\npublic void connectableReplay() throws Exception {\r\n    ConnectableObservable<Integer> just = Observable.just(1).replay();\r\n\r\n    just.test().assertNoValues();\r\n\r\n    Disposable connect = just.connect();\r\n    connect.dispose();\r\n\r\n    just.test()\r\n            .assertValue(1)\r\n            .assertComplete();\r\n}\r\n```\r\n\r\nSo even after a `replay()` ConnectableObservable was disposed it can still emit it's replayed values? Is that the desired behaviour?"}}
{"actor":{"display_login":"Mauin"}}