Skip to content

Commit 11a4157

Browse files
committed
Improve toSingle() javadoc (diagram, see also, since-annotation)
1 parent 9549363 commit 11a4157

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/rx/Observable.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ public interface Transformer<T, R> extends Func1<Observable<T>, Observable<R>> {
201201
* emits only a single item. If the source Observable emits more than one item or no items, notify of an
202202
* {@code IllegalArgumentException} or {@code NoSuchElementException} respectively.
203203
* <p>
204+
* <img width="640" height="295" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/toSingle.png" alt="">
204205
* <dl>
205206
* <dt><b>Scheduler:</b></dt>
206207
* <dd>{@code toSingle} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -211,6 +212,8 @@ public interface Transformer<T, R> extends Func1<Observable<T>, Observable<R>> {
211212
* if the source observable emits more than one item
212213
* @throws NoSuchElementException
213214
* if the source observable emits no items
215+
* @see <a href="http://reactivex.io/documentation/single.html">ReactiveX documentation: Single</a>
216+
* @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
214217
*/
215218
@Experimental
216219
public Single<T> toSingle() {

0 commit comments

Comments
 (0)