{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/RxJava/issues/3578","labels_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/3578/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/3578/comments","events_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/3578/events","html_url":"https://github.com/ReactiveX/RxJava/issues/3578","id":122699761,"number":3578,"title":"Observable share() with skip() usage issue","user":{"login":"httpdispatch","id":2315223,"avatar_url":"https://avatars.githubusercontent.com/u/2315223?v=3","gravatar_id":"","url":"https://api.github.com/users/httpdispatch","html_url":"https://github.com/httpdispatch","followers_url":"https://api.github.com/users/httpdispatch/followers","following_url":"https://api.github.com/users/httpdispatch/following{/other_user}","gists_url":"https://api.github.com/users/httpdispatch/gists{/gist_id}","starred_url":"https://api.github.com/users/httpdispatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/httpdispatch/subscriptions","organizations_url":"https://api.github.com/users/httpdispatch/orgs","repos_url":"https://api.github.com/users/httpdispatch/repos","events_url":"https://api.github.com/users/httpdispatch/events{/privacy}","received_events_url":"https://api.github.com/users/httpdispatch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-12-17T09:51:58Z","updated_at":"2015-12-17T13:54:07Z","closed_at":null,"body":"I have a code, where the shared observable is used. One of the shared instances there uses extra skip and debounce operators. The problem is that sometimes the action for the instance where skip and debounce is used is not called\r\n```\r\nObservable<Integer> beginChanged = RxBindingUtils\r\n        .valueChanged(begin)\r\n        .doOnEach(value -> Timber.d(\"Begin value changed: \" + value.getValue()))\r\n        .share();\r\n\r\nmonitor(\r\n        beginChanged\r\n                .map(minutes -> minutesToTime(minutes))\r\n                .subscribe(beginTime.asAction()));\r\nmonitor(\r\n        beginChanged\r\n                .map(minutes -> minutes / interval)\r\n                .subscribe(rangeBegin.asAction()));\r\nmonitor(\r\n        beginChanged \r\n                .skip(1)// skip initial value emitted automatically right after the\r\n                        // subsription\r\n                .debounce(500, TimeUnit.MILLISECONDS)// such as range bar may change the\r\n                        // value very quickly use the\r\n                        // debounce function for the timeout\r\n                        // based processing\r\n                .doOnEach(value -> Timber.d(\"Begin value changed 2: \" + value.getValue()))\r\n                .subscribe(mSchedulerRangeBegin.asAction()));\r\n```\r\nIf i replace the last occurrence of the beginChanges with the new observable it works as expected\r\n```\r\nmonitor(\r\n        RxBindingUtils\r\n                .valueChanged(begin) // can't use shared observable because of unexpected behaviour with skip call\r\n                .skip(1)// skip initial value emitted automatically right after the\r\n                        // subsription\r\n                .debounce(500, TimeUnit.MILLISECONDS)// such as range bar may change the\r\n                        // value very quickly use the\r\n                        // debounce function for the timeout\r\n                        // based processing\r\n                .doOnEach(value -> Timber.d(\"Begin value changed 2: \" + value.getValue()))\r\n                .subscribe(mSchedulerRangeBegin.asAction()));\r\n```\r\nAre there any restrictions which don't allow to use skip and debounce on shared observables?"},"comment":{"url":"https://api.github.com/repos/ReactiveX/RxJava/issues/comments/165458290","html_url":"https://github.com/ReactiveX/RxJava/issues/3578#issuecomment-165458290","issue_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/3578","id":165458290,"user":{"login":"httpdispatch","id":2315223,"avatar_url":"https://avatars.githubusercontent.com/u/2315223?v=3","gravatar_id":"","url":"https://api.github.com/users/httpdispatch","html_url":"https://github.com/httpdispatch","followers_url":"https://api.github.com/users/httpdispatch/followers","following_url":"https://api.github.com/users/httpdispatch/following{/other_user}","gists_url":"https://api.github.com/users/httpdispatch/gists{/gist_id}","starred_url":"https://api.github.com/users/httpdispatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/httpdispatch/subscriptions","organizations_url":"https://api.github.com/users/httpdispatch/orgs","repos_url":"https://api.github.com/users/httpdispatch/repos","events_url":"https://api.github.com/users/httpdispatch/events{/privacy}","received_events_url":"https://api.github.com/users/httpdispatch/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T13:54:07Z","updated_at":"2015-12-17T13:54:07Z","body":"There are no android import there"}}