Rx.Observable.prototype.repeat(repeatCount)

repeat

Repeats the observable sequence a specified number of times. If the repeat count is not specified, the sequence repeats indefinitely.

参数

  1. repeatCount (Number): Number of times to repeat the sequence. If not provided, repeats the sequence indefinitely.

返回值

(Observable): The observable sequence producing the elements of the given sequence repeatedly.