Rx.Observable.prototype.subscribeOnNext(onNext, [thisArg])

Subscribes a function to invoke for each element in the observable sequence.

参数

  1. onNext (Function): Function to invoke for each element in the observable sequence.
  2. [thisArg] (Any): Object to use as this when executing callback.

返回值

(Disposable): The source sequence whose subscriptions and unsubscriptions happen on the specified scheduler.

Using functions

With a thisArg