Skip to content

Improve toSingle() javadoc (diagram, see also, since-annotation) #3069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main/java/rx/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ public interface Transformer<T, R> extends Func1<Observable<T>, Observable<R>> {
* emits only a single item. If the source Observable emits more than one item or no items, notify of an
* {@code IllegalArgumentException} or {@code NoSuchElementException} respectively.
* <p>
* <img width="640" height="295" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/toSingle.png" alt="">
* <dl>
* <dt><b>Scheduler:</b></dt>
* <dd>{@code toSingle} does not operate by default on a particular {@link Scheduler}.</dd>
Expand All @@ -211,6 +212,8 @@ public interface Transformer<T, R> extends Func1<Observable<T>, Observable<R>> {
* if the source observable emits more than one item
* @throws NoSuchElementException
* if the source observable emits no items
* @see <a href="http://reactivex.io/documentation/single.html">ReactiveX documentation: Single</a>
* @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
*/
@Experimental
public Single<T> toSingle() {
Expand Down