简体   繁体   English

RxJava。 运营商在哪里?

[英]RxJava. Where are the operators?

I am looking at these documentation pages: 我正在查看以下文档页面:

http://reactivex.io/documentation/single.html http://reactivex.io/documentation/operators/start.html http://reactivex.io/documentation/single.html http://reactivex.io/documentation/operators/start.html

talking respectively about the RxJava single object and start operator, but I cannot figure out how to find them. 分别谈论RxJava单个对象和启动运算符,但我不知道如何找到它们。 The observable class does not have a static "start" method, and no way to create a "single" object. 可观察的类没有静态的“开始”方法,也没有创建“单个”对象的方法。 I imported both the rxjava and rxjava-async packages though maven. 我通过maven导入了rxjava和rxjava-async软件包。

Thank you. 谢谢。

Single is marked as @Experimental in the latest source , and has not made it to the current maven release (1.0.12, updated 2015.06.09). Single最新的源代码中被标记为@Experimental ,尚未在当前的Maven版本 (1.0.12,2015.06.09更新)中实现。 From reading the docs, it appears that you would use a Single instead of an Observer . 通过阅读文档,您似乎将使用Single而不是Observer I understand that the documentation follows the latest source, rather than the latest current release. 我了解该文档遵循最新的来源,而不是最新的最新版本。

Start is available as a method of rx.util.async.Async in the 0.21.0 maven release . Start是作为一个方法rx.util.async.Async0.21.0行家释放 You need an Async instance instead of an Observer to call it on; 您需要一个Async实例而不是一个Observer来调用它; see variants of Async.toAsync() for details. 有关详细信息,请参见Async.toAsync()变体。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM