scratch on top of the Reactive-Streams specification. The specification itself has evolved out of RxJava 1.x and provides a common baseline for reactive systems and libraries. • 因為要符合 Reactive-Streams specification。所以把 RxJava Library 重寫⼀一遍,稱作 2.0
a standard for asynchronous stream processing with non-blocking back pressure. This encompasses efforts aimed at runtime environments (JVM and JavaScript) as well as network protocols. • 簡單來來說就是⼀一個 “處理理 asynchronous 程式” 的標準規範
Exception { return "Hello"; } }); • Returns an Observable that, when an observer subscribes to it, invokes a function you specify and then emits the value returned from that function. • 當有⼈人訂閱 (subscribe) 時,才發射資料。
RxJava Official wiki https://github.com/ReactiveX/RxJava/wiki/What's-different- in-2.0 • Reactive-streams API http://www.reactive-streams.org/reactive-streams-1.0.0- javadoc/