{"action":"created","issue":{"url":"https://api.github.com/repos/reactiveui/ReactiveUI/issues/1112","repository_url":"https://api.github.com/repos/reactiveui/ReactiveUI","labels_url":"https://api.github.com/repos/reactiveui/ReactiveUI/issues/1112/labels{/name}","comments_url":"https://api.github.com/repos/reactiveui/ReactiveUI/issues/1112/comments","events_url":"https://api.github.com/repos/reactiveui/ReactiveUI/issues/1112/events","html_url":"https://github.com/reactiveui/ReactiveUI/issues/1112","id":156570964,"number":1112,"title":"Observable breaks after exception","user":{"login":"akamud","id":954102,"avatar_url":"https://avatars.githubusercontent.com/u/954102?v=3","gravatar_id":"","url":"https://api.github.com/users/akamud","html_url":"https://github.com/akamud","followers_url":"https://api.github.com/users/akamud/followers","following_url":"https://api.github.com/users/akamud/following{/other_user}","gists_url":"https://api.github.com/users/akamud/gists{/gist_id}","starred_url":"https://api.github.com/users/akamud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akamud/subscriptions","organizations_url":"https://api.github.com/users/akamud/orgs","repos_url":"https://api.github.com/users/akamud/repos","events_url":"https://api.github.com/users/akamud/events{/privacy}","received_events_url":"https://api.github.com/users/akamud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-24T17:58:54Z","updated_at":"2016-05-25T02:06:07Z","closed_at":null,"body":"I am trying to create an Observable from `TextChange` event from an EditText component. From there I call an async task that simulates a remote service call.\r\n\r\nI do this creating a `ReactiveCommand` from an async task:\r\n\r\n```C#\r\n Search = ReactiveCommand.CreateAsyncTask(parameter => GetGitHubUsers((string)parameter));\r\n\r\n// executing the command\r\nthis.WhenAnyValue(u => u.UserName)\r\n                .Select(u => this.Search.ExecuteAsync(u))\r\n                .Switch()\r\n                .Subscribe(results =>\r\n                {\r\n                    SearchResults.Clear();\r\n                    if (results != null)\r\n                        SearchResults.AddRange(results);\r\n                }, ex => { ShowError = true; });\r\n```\r\n\r\nSo from my understanding I have an Observable with Observables.\r\n\r\nThen I throw an exception in my service, my code doesn't crash and it successfully shows the `Error` message. The problem is that then my observable stops watching for text change events. If I keep typing anything the command is not called again.\r\n\r\nIs this a bug on Android's `ReactiveCommand` or am I doing something wrong?\r\n\r\nI tried to have the simplest repro [here](https://github.com/akamud/HackDaysRxUI/blob/breaking/HackDaysRxUI-Core/ViewModels/ViewModel.cs#L21), I tried this code on WPF and it works, but it behaves as explained above on Android.\r\n*Please note the sample is in the `breaking` branch.*"},"comment":{"url":"https://api.github.com/repos/reactiveui/ReactiveUI/issues/comments/221454582","html_url":"https://github.com/reactiveui/ReactiveUI/issues/1112#issuecomment-221454582","issue_url":"https://api.github.com/repos/reactiveui/ReactiveUI/issues/1112","id":221454582,"user":{"login":"moswald","id":85051,"avatar_url":"https://avatars.githubusercontent.com/u/85051?v=3","gravatar_id":"","url":"https://api.github.com/users/moswald","html_url":"https://github.com/moswald","followers_url":"https://api.github.com/users/moswald/followers","following_url":"https://api.github.com/users/moswald/following{/other_user}","gists_url":"https://api.github.com/users/moswald/gists{/gist_id}","starred_url":"https://api.github.com/users/moswald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moswald/subscriptions","organizations_url":"https://api.github.com/users/moswald/orgs","repos_url":"https://api.github.com/users/moswald/repos","events_url":"https://api.github.com/users/moswald/events{/privacy}","received_events_url":"https://api.github.com/users/moswald/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T02:06:07Z","updated_at":"2016-05-25T02:06:07Z","body":"Subscribing to `Search.ThrownExceptions` will only notify you and let you take action on an exception, but it won't stop the exception from being sent (and caught) in the `Subscribe`. I think what you have is correct, but you just have to continue the stream when an exception is thrown."}}
{"actor":{"display_login":"moswald"}}