Schedulers with Operators

Learn how Schedulers are used in conjunction with the .subscribeOn() and .observeOn() operators.

.subscribeOn()

The .subscribeOn() operator is used in the Observable chain to dictate where the Observable should operate–for example, the function inside of .create(). Rewriting the previous example using a Scheduler instead gives us:

Get hands-on with 1400+ tech skills courses.