RxJava v2.0.9 发布,一个实现异步操作的库

jopen 5年前
   <p style="text-align: center;"><strong><img alt="" src="https://simg.open-open.com/show/27e89a5a287f2aa133ed68e1e8b7e831.png" /></strong></p>    <p> </p>    <p>RxJava一个在 Java VM 上使用可观测的序列来组成异步的、基于事件的程序的库。说到根上,它就是一个实现异步操作的库,而别的定语都是基于这之上的。同样是做异步,为什么人们用它,而不用现成的 AsyncTask / Handler / XXX / ... ?,原因是RxJava简洁,异步操作很关键的一点是程序的简洁性,因为在调度过程比较复杂的情况下,异步代码经常会既难写也难被读懂。 Android 创造的 AsyncTask 和Handler ,其实都是为了让异步代码更加简洁。RxJava 的优势也是简洁,但它的简洁的与众不同之处在于,随着程序逻辑变得越来越复杂,它依然能够保持简洁。</p>    <p style="text-align: center;"><a href="https://simg.open-open.com/show/590895c0b975a817143b0f53b870e71b.jpg"><img alt="" src="https://simg.open-open.com/show/590895c0b975a817143b0f53b870e71b.jpg" /></a></p>    <p style="text-align: center;"><a href="https://simg.open-open.com/show/039f09fd6005089241137560455ed074.png"><img alt="" src="https://simg.open-open.com/show/039f09fd6005089241137560455ed074.png" /></a></p>    <h2>更新日志</h2>    <ul>     <li><a href="/misc/goto?guid=4959006912196629168">Pull 5302</a>: Add <code>Single.unsubscribeOn()</code>.</li>     <li><a href="/misc/goto?guid=4959006912301529995">Pull 5247</a>: Fix <code>Flowable.toList()</code> <code>onNext</code>/<code>cancel</code> race.</li>     <li><a href="/misc/goto?guid=4959006912395630969">Pull 5256</a>: Fix <code>flatMapIterable</code> appearing to be empty when fused.</li>     <li><a href="/misc/goto?guid=4959006912492314917">Pull 5277</a>: Fix <code>Single.subscribe(BiConsumer)</code> to be consistent with <code>isDisposed</code>.</li>     <li><a href="/misc/goto?guid=4959006912581794591">Pull 5281</a>: Fix <code>BehaviorProcessor</code> & <code>BehaviorSubject</code> terminate-subscribe race.</li>     <li><a href="/misc/goto?guid=4959006912673814023">Pull 5287</a>: Fix <code>Flowable.flatMapMaybe</code>/<code>Flowable.flatMapSingle</code> <code>maxConcurrency</code> not requesting more.</li>     <li><a href="/misc/goto?guid=4959006912768977520">Pull 5271</a>: enable link to external JDK, fix <code>Schedulers</code> style.</li>     <li><a href="/misc/goto?guid=4959006912860530109">Pull 5286</a>: Cleanup for text and Javadoc 04/15.</li>     <li><a href="/misc/goto?guid=4959006912952421750">Commit 7c95808</a>: Fix <code>DisposableX</code> copy-paste error in Javadoc.</li>     <li><a href="/misc/goto?guid=4959006913052590787">Pull 5296</a>: Improve <code>doOnDispose</code> JavaDoc.</li>     <li><a href="/misc/goto?guid=4959006913147695248">Pull 5297</a>: Fix JavaDoc image for <code>Single.flatMapObservable()</code>.</li>     <li><a href="/misc/goto?guid=4959006913238074073">Pull 5304</a>: Correct documented return type of <code>Single.flatMapObservable()</code>'s function argument.</li>     <li><a href="/misc/goto?guid=4959006913328257910">Pull 5255</a>: Add <code>NullPointerException</code> comments and <code>ObjectHelper</code> test code.</li>     <li><a href="/misc/goto?guid=4959006913420226064">Pull 5251</a>: More nullability annotations.</li>     <li><a href="/misc/goto?guid=4959006913520056673">Pull 5257</a>: Remove <code>@NonNull</code> annotations from <code>BiConsumer</code>.</li>     <li><a href="/misc/goto?guid=4959006913613696458">Pull 5268</a>: Remove commented out code from <code>IoScheduler</code>.</li>     <li><a href="/misc/goto?guid=4959006913727728244">Pull 5301</a>: More detailed no-multi-subscribe error message with the standard consumer types (such as<code>DisposableObserver</code>).</li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4959006913815983947" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4959006913906570050" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>    <p>本站原创,转载时保留以下信息:<br /> 本文转自:深度开源(open-open.com)<br /> 原文地址:<a href="http://www.open-open.com/news/view/32d7144e">http://www.open-open.com/news/view/32d7144e</a></p>