Rx.Observable.prototype.subscribeOn(scheduler)

subscribeOn

Wraps the source sequence in order to run its subscription and unsubscription logic on the specified scheduler.

This only performs the side-effects of subscription and unsubscription on the specified scheduler. In order to invoke observer callbacks on a scheduler, use observeOn.

参数

  1. scheduler (Scheduler): Scheduler to notify observers on.

返回值

(Observable): The source sequence whose observations happen on the specified scheduler.