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

jopen 8年前
   <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><a href="https://simg.open-open.com/show/590895c0b975a817143b0f53b870e71b.jpg"><img alt="" src="https://simg.open-open.com/show/590895c0b975a817143b0f53b870e71b.jpg" /></a></p>    <p><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>    <p><strong>API增强</strong></p>    <ul>     <li><a href="/misc/goto?guid=4958995314958334319">Pull 4827</a>: Porting the <code>Scheduler.when</code> operator from 1.x to 2.x</li>     <li><a href="/misc/goto?guid=4958995315058501675">Pull 4831</a>: add <code>Flowable.doFinally(Action)</code> for handling post-terminal or cancel cleanup.</li>     <li><a href="/misc/goto?guid=4958995315141934935">Pull 4832</a>: add <code>doFinally</code> to the rest of the reactive base classes</li>     <li><a href="/misc/goto?guid=4958995315224414270">Pull 4833</a>: add <code>Flowable.doAfterNext</code> operator</li>     <li><a href="/misc/goto?guid=4958995315308328970">Pull 4835</a>: add <code>Observable.doAfterNext</code> and <code>{Single|Maybe}.doAfterSuccess</code>.</li>     <li><a href="/misc/goto?guid=4958995315392700353">Pull 4838</a>: add fluent <code>TestSubscriber.requestMore</code></li>    </ul>    <p><strong>文档修复/增强</strong></p>    <ul>     <li><a href="/misc/goto?guid=4958995315478401689">Pull 4793</a>: Fix javadoc mentioning <code>IllegalArgumentException</code> instead of <code>NullPointerException</code> for calling with <code>null</code> parameter(s).</li>     <li><a href="/misc/goto?guid=4958995315559061972">Pull 4798</a>: Fix <code>Observable.toFlowable</code> documentation</li>     <li><a href="/misc/goto?guid=4958995315641321092">Pull 4803</a>: Fix <code>ObservableEmitter</code> mentioning <code>FlowableEmitter</code>.</li>     <li><a href="/misc/goto?guid=4958995315739196058">Pull 4810</a>: Fix <code>Completable.retryWhen</code> terminology about signal emission.</li>     <li><a href="/misc/goto?guid=4958995315812106602">Pull 4815</a>: Fix typo in javadoc of <code>Maybe.toSingle</code></li>     <li><a href="/misc/goto?guid=4958995315894166028">Pull 4839</a>: fix wording of some operators, remove <code>@throws</code> implications</li>    </ul>    <p><strong>Bug修复</strong></p>    <ul>     <li><a href="/misc/goto?guid=4958995315982303280">Pull 4783</a>: Fix <code>Observable.repeatWhen</code> & <code>retryWhen</code> not disposing the inner.</li>     <li><a href="/misc/goto?guid=4958995316060202866">Pull 4819</a>: Fix <code>Observable.repeatWhen</code> not reacting to upstream <code>onError</code> properly.</li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4958995316134873036" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4958995316226117130" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>    <p> </p>    <p>本站原创,转载时保留以下信息:<br /> 本文转自:深度开源(open-open.com)<br /> 原文地址:<a href="http://www.open-open.com/news/view/4eef8b58">http://www.open-open.com/news/view/4eef8b58</a></p>