requestanimationframescheduler.md

March 26, 2015 · View on GitHub

Rx.Scheduler.requestAnimationFrame

Gets an Rx.Scheduler that schedules schedules work on the window.requestAnimationFrame for immediate actions and defaults to window.setTimeout if not available.

Example

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

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

// => 42

Location

File:

Dist:

Prerequisites:

NPM Packages:

NuGet Packages:

Unit Tests: