Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 984 Bytes

File metadata and controls

27 lines (16 loc) · 984 Bytes

{% if book.isPdf %}

generate

{% else %}

{% endif %}

Converts an array to an observable sequence, using an optional scheduler to enumerate the array.

Arguments

  1. initialState (Any): Initial state.
  2. condition (Function): Condition to terminate generation (upon returning false).
  3. iterate (Function): Iteration step function.
  4. resultSelector (Function): Selector function for results produced in the sequence.
  5. [scheduler=Rx.Scheduler.currentThread] (Scheduler): Scheduler on which to run the generator loop. If not provided, defaults to Scheduler.currentThread.

Returns

(Observable): The generated sequence.

Example