Rx.Observable.repeat(value, [repeatCount], [scheduler])
Generates an observable sequence that repeats the given element the specified number of times, using the specified scheduler to send out observer messages.
Arguments
value
(Any
): Element to repeat.[repeatCount=-1]
(Number
):Number of times to repeat the element. If not specified, repeats indefinitely.[scheduler=Rx.Scheduler.immediate]
(Scheduler
): Scheduler to run the producer loop on. If not specified, defaults to Scheduler.immediate.
Returns
(Observable
): An observable sequence that repeats the given element the specified number of times.