{"action":"created","issue":{"url":"https://api.github.com/repos/Kevin1466/ReadingNotes2016/issues/2","labels_url":"https://api.github.com/repos/Kevin1466/ReadingNotes2016/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Kevin1466/ReadingNotes2016/issues/2/comments","events_url":"https://api.github.com/repos/Kevin1466/ReadingNotes2016/issues/2/events","html_url":"https://github.com/Kevin1466/ReadingNotes2016/issues/2","id":126630442,"number":2,"title":"RxJava学习笔记","user":{"login":"Kevin1466","id":7813414,"avatar_url":"https://avatars.githubusercontent.com/u/7813414?v=3","gravatar_id":"","url":"https://api.github.com/users/Kevin1466","html_url":"https://github.com/Kevin1466","followers_url":"https://api.github.com/users/Kevin1466/followers","following_url":"https://api.github.com/users/Kevin1466/following{/other_user}","gists_url":"https://api.github.com/users/Kevin1466/gists{/gist_id}","starred_url":"https://api.github.com/users/Kevin1466/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kevin1466/subscriptions","organizations_url":"https://api.github.com/users/Kevin1466/orgs","repos_url":"https://api.github.com/users/Kevin1466/repos","events_url":"https://api.github.com/users/Kevin1466/events{/privacy}","received_events_url":"https://api.github.com/users/Kevin1466/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-14T10:55:50Z","updated_at":"2016-01-23T12:24:46Z","closed_at":null,"body":"RxAndroid添加最少的类到RxJava，使安卓应用中编写响应式组件更容易、麻烦更少。更具体的是，它提供一个Scheduler编排主线程或给定的Handler。\r\n\r\n因RxAndroid是RxJava家族的一部分，所以它们通信渠道是相似的。\r\nRxJava是ReactiveX(响应式扩展)的虚拟机实现：这是一个使用可观察序列的构成异步和基于事件编程的库程序。（什么鬼？）\r\nRxJava是轻量的\r\nRxJava是多种语言的实现\r\n如何使用RxJava进行设计\r\n为使用RxJava，你可以创建Observables（发射数据），用不同方式转换这些Observables可以得到你感兴趣的精确的数据项（使用Observable操作符）。然后，观察和响应这些你感兴趣的项的序列（通过实现Observers或Subscribers，然后将他们订阅给###的Obervables）。\r\n创建Observables\r\n可以通过传递一个函数给create()手动实现Observable’s行为，或者可以通过使用一些转为这个目的设计的Observable操作符转换现有的数据结构到Observable。\r\n##从现有的数据结构创建一个Observable\r\n使用Observable的just()、from()方法转换object、lists或者对象数据到Observable，Observable发射这些对象。\r\n对于Observable发射的每个item，这些转换的Observables将同步调用任何订阅者的onNext()方法，然后调用订阅者的onCompleted()方法。\r\n##通过create()方法创建Observable\r\n\r\nObservable\r\nRxJava中一个实现了Observer接口的对象subscribe到一个Observable类的对象。然后，订阅者和Observable对象发射出的item或者item sequence进行交互。这个模式使并行操作变得容易，因为在等待Observable发射对象时不需要阻塞，但是它创建一个哨兵准备在将来任何时间##########。\r\nObservable对象，function/Action  Observable，Callbable  Observable，Runnable  Observable\r\n"},"comment":{"url":"https://api.github.com/repos/Kevin1466/ReadingNotes2016/issues/comments/174183110","html_url":"https://github.com/Kevin1466/ReadingNotes2016/issues/2#issuecomment-174183110","issue_url":"https://api.github.com/repos/Kevin1466/ReadingNotes2016/issues/2","id":174183110,"user":{"login":"SmartDengg","id":15685298,"avatar_url":"https://avatars.githubusercontent.com/u/15685298?v=3","gravatar_id":"","url":"https://api.github.com/users/SmartDengg","html_url":"https://github.com/SmartDengg","followers_url":"https://api.github.com/users/SmartDengg/followers","following_url":"https://api.github.com/users/SmartDengg/following{/other_user}","gists_url":"https://api.github.com/users/SmartDengg/gists{/gist_id}","starred_url":"https://api.github.com/users/SmartDengg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmartDengg/subscriptions","organizations_url":"https://api.github.com/users/SmartDengg/orgs","repos_url":"https://api.github.com/users/SmartDengg/repos","events_url":"https://api.github.com/users/SmartDengg/events{/privacy}","received_events_url":"https://api.github.com/users/SmartDengg/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T12:24:46Z","updated_at":"2016-01-23T12:24:46Z","body":"我想应该是，通过可观察序列，处理基于事件的异步数据流的类库。\r\n第一次见到有姑娘在学习RxJava。赞。"}}