I am looking at these documentation pages:
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. 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.
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). From reading the docs, it appears that you would use a Single
instead of an 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 . You need an Async
instance instead of an Observer
to call it on; see variants of Async.toAsync()
for details.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.