{"action":"opened","issue":{"url":"https://api.github.com/repos/ReactiveX/RxJava/issues/5642","repository_url":"https://api.github.com/repos/ReactiveX/RxJava","labels_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/5642/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/5642/comments","events_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/5642/events","html_url":"https://github.com/ReactiveX/RxJava/issues/5642","id":262755010,"number":5642,"title":"Maybe.subscribeWith() has incorrect documentation","user":{"login":"dimsuz","id":42920,"avatar_url":"https://avatars3.githubusercontent.com/u/42920?v=4","gravatar_id":"","url":"https://api.github.com/users/dimsuz","html_url":"https://github.com/dimsuz","followers_url":"https://api.github.com/users/dimsuz/followers","following_url":"https://api.github.com/users/dimsuz/following{/other_user}","gists_url":"https://api.github.com/users/dimsuz/gists{/gist_id}","starred_url":"https://api.github.com/users/dimsuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimsuz/subscriptions","organizations_url":"https://api.github.com/users/dimsuz/orgs","repos_url":"https://api.github.com/users/dimsuz/repos","events_url":"https://api.github.com/users/dimsuz/events{/privacy}","received_events_url":"https://api.github.com/users/dimsuz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-04T11:34:27Z","updated_at":"2017-10-04T11:34:27Z","closed_at":null,"author_association":"NONE","body":"`Maybe.subscribeWith()` [documentation ](https://github.com/ReactiveX/RxJava/blob/v2.1.5-RC4/src/main/java/io/reactivex/Maybe.java#L3771-L3799) suggests that it returns a `Disposable` and contains this example (translated to Kotlin):\r\n\r\n```kotlin\r\n    val source = Maybe.just(1)\r\n    val composite = CompositeDisposable()\r\n    val ms = object : MaybeObserver<Int> {\r\n      // ...\r\n    }\r\n    composite.add(source.subscribeWith(ms))\r\n```\r\n\r\nThis code does not compile, because `MaybeObserver` does not implement `Disposable`.\r\n\r\nShould the documentation suggest to use `DisposableMaybeObserver` here?\r\nIf yes, I can submit a PR."}}
{"actor":{"display_login":"dimsuz"}}