Calling next with Schedulers

The scheduler is one of the most important tools of Rx through which it decides exactly when to send the data down the stream. Let's see the difference between asap scheduler and async scheduler.

Schedulers

You’ve learned a heaping pile of different ways to create observables throughout this course. The secret you didn’t know was how Rx decides exactly when to send a new value down the chain.

The tool Rx uses for this is called a scheduler, and Rx ships many options for you to choose from. By default, every observable does not use a scheduler to plan out events, instead, they emit all values synchronously.

Run the following code to see this in action:

Get hands-on with 1200+ tech skills courses.