0
votes

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.

1
Please refine this post to be 1 question, or split it into 2 questions on stack overflow. - onebree

1 Answers

2
votes

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.