{"action":"created","issue":{"url":"https://api.github.com/repos/pwittchen/ReactiveSensors/issues/19","labels_url":"https://api.github.com/repos/pwittchen/ReactiveSensors/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/pwittchen/ReactiveSensors/issues/19/comments","events_url":"https://api.github.com/repos/pwittchen/ReactiveSensors/issues/19/events","html_url":"https://github.com/pwittchen/ReactiveSensors/issues/19","id":125755374,"number":19,"title":"Schedulers.io() or Schedulers.computation()","user":{"login":"vicgrad","id":1922701,"avatar_url":"https://avatars.githubusercontent.com/u/1922701?v=3","gravatar_id":"","url":"https://api.github.com/users/vicgrad","html_url":"https://github.com/vicgrad","followers_url":"https://api.github.com/users/vicgrad/followers","following_url":"https://api.github.com/users/vicgrad/following{/other_user}","gists_url":"https://api.github.com/users/vicgrad/gists{/gist_id}","starred_url":"https://api.github.com/users/vicgrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicgrad/subscriptions","organizations_url":"https://api.github.com/users/vicgrad/orgs","repos_url":"https://api.github.com/users/vicgrad/repos","events_url":"https://api.github.com/users/vicgrad/events{/privacy}","received_events_url":"https://api.github.com/users/vicgrad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pwittchen/ReactiveSensors/labels/discussion","name":"discussion","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-09T12:10:51Z","updated_at":"2016-01-09T12:19:40Z","closed_at":null,"body":"In the sample (SensorHelper.java) I see you're using Schedulers.io().\r\n\r\nWouldn't it be better to use Schedulers.computation() for this?\r\n\r\nref: http://reactivex.io/RxJava/javadoc/rx/schedulers/Schedulers.html"},"comment":{"url":"https://api.github.com/repos/pwittchen/ReactiveSensors/issues/comments/170231482","html_url":"https://github.com/pwittchen/ReactiveSensors/issues/19#issuecomment-170231482","issue_url":"https://api.github.com/repos/pwittchen/ReactiveSensors/issues/19","id":170231482,"user":{"login":"pwittchen","id":695319,"avatar_url":"https://avatars.githubusercontent.com/u/695319?v=3","gravatar_id":"","url":"https://api.github.com/users/pwittchen","html_url":"https://github.com/pwittchen","followers_url":"https://api.github.com/users/pwittchen/followers","following_url":"https://api.github.com/users/pwittchen/following{/other_user}","gists_url":"https://api.github.com/users/pwittchen/gists{/gist_id}","starred_url":"https://api.github.com/users/pwittchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwittchen/subscriptions","organizations_url":"https://api.github.com/users/pwittchen/orgs","repos_url":"https://api.github.com/users/pwittchen/repos","events_url":"https://api.github.com/users/pwittchen/events{/privacy}","received_events_url":"https://api.github.com/users/pwittchen/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T12:19:40Z","updated_at":"2016-01-09T12:19:40Z","body":"Hi,\r\n\r\nThank you for creating new issue. \r\n\r\nI'm not sure about this. Library is responsible for reading data from sensors, so it can be considered as I/O work. There's no additional heavy operations in the library under the hood. If I understand RxJava schedulers correctly, we should use `Schedulers.computation()` in case of performing some computations.\r\n\r\nI'm open for discussion and if you provide good arguments about switching to `Schedulers.computation()` in this case, we can update samples. :)"}}