Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.75 KB

microtaskscheduler.md

File metadata and controls

41 lines (30 loc) · 1.75 KB

Rx.Scheduler.microtask

Gets an Rx.Scheduler that schedules work on the window.MutationObserver for immediate actions. If this is not available, this defaults to window.setImmediate, window.postMessage, window.MessageChannel, script.onreadystatechanged and finally setTimeout in that order based upon what your browser supports.

Example

var obs = Rx.Observable.return(
  42,
  Rx.Scheduler.mutationObserver);

obs.subscribe(function (x) {
  // Scheduled using a MutationObserver
  console.log(x);
});

// => 42

Location

File:

Dist:

Prerequisites:

NPM Packages:

NuGet Packages:

Unit Tests: