Skip to content

Commit d3a0daa

Browse files
committed
adding diagram to repeat() javadocs
1 parent 63dfb37 commit d3a0daa

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

rxjava-core/src/main/java/rx/Observable.java

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,20 +1108,27 @@ public static Observable<Integer> range(int start, int count, Scheduler schedule
11081108
/**
11091109
* Repeats the observable sequence indefinitely.
11101110
* <p>
1111+
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/repeat.png">
11111112
*
1112-
* @return The observable sequence producing the elements of the given sequence repeatedly and sequentially.
1113-
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229428(v=vs.103).aspx">MSDN: Observable.Repeat</a>
1113+
* @return an Observable that emits the items emitted by the source
1114+
* Observable repeatedly and in sequence
1115+
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#repeat">RxJava Wiki: repeat()</a>
1116+
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229428.aspx">MSDN: Observable.Repeat</a>
11141117
*/
11151118
public Observable<T> repeat() {
11161119
return this.repeat(Schedulers.currentThread());
11171120
}
11181121

11191122
/**
1120-
* Repeats the observable sequence indefinitely.
1123+
* Repeats the observable sequence indefinitely, on a particular scheduler.
11211124
* <p>
1125+
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/repeat.s.png">
1126+
*
11221127
* @param scheduler the scheduler to send the values on.
1123-
* @return The observable sequence producing the elements of the given sequence repeatedly and sequentially.
1124-
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229428(v=vs.103).aspx">MSDN: Observable.Repeat</a>
1128+
* @return an Observable that emits the items emitted by the source
1129+
* Observable repeatedly and in sequence
1130+
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#repeat">RxJava Wiki: repeat()</a>
1131+
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229428.aspx">MSDN: Observable.Repeat</a>
11251132
*/
11261133
public Observable<T> repeat(Scheduler scheduler) {
11271134
return create(OperationRepeat.repeat(this, scheduler));

0 commit comments

Comments
 (0)