A producer have the task of producing the values emitted by an Observable

 class Producer {
      this.i = 0;

      return i++;

And to use it

    let stream$ = Rx.Observable.create( (observer) => { Producer.nextValue() ) Producer.nextValue() )

In the Observable Anatomy chapter there is no Producer in the examples but most Observables that are created by a helper method will have an internal Producer producing values that the observer emits using the method

results matching ""

    No results matching ""