Rx.Observable.generateWithAbsoluteTime(initialState, condition, iterate, resultSelector, timeSelector, [scheduler])
Generates an observable sequence by iterating a state from an initial state until the condition fails.
Arguments
initialState
(Any
): Initial state.condition
(Function
): Condition to terminate generation (upon returning false).iterate
(Function
): Iteration step function.resultSelector
(Function
): Selector function for results produced in the sequence.timeSelector
(Function
): Time selector function to control the speed of values being produced each iteration, returning Date values.[scheduler=Rx.Scheduler.timeout]
(Scheduler
): Scheduler on which to run the generator loop. If not provided, defaults to Scheduler.timeout.
Returns
(Observable
): The generated sequence.