repeat method

Observable<TResult> repeat (int repeatCount)

Creates an Observable that repeats the source's elements the specified number of times.

Example

new Observable.just(1).repeat(3).listen(print); // prints 1, 1, 1

Implementation

Observable<T> repeat(int repeatCount) =>
    transform(new RepeatStreamTransformer<T>(repeatCount));