Default Schedulers of Rx

Learn about the default Scheduler and its usage in RxJS.

We'll cover the following

The default Scheduler runs actions asynchronously. We can think of it as a rough equivalent of setTimeout with a zero-millisecond delay that keeps the order in the sequence. It uses the most efficient asynchronous implementation available on the platform it runs (for example, process.nextTick in Node.js or set-Timeout in the browser).

Let’s take the previous example with the range operator and make it run on the default Scheduler. For this, we’ll use the observeOn operator:

Get hands-on with 1200+ tech skills courses.