Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Latest commit

 

History

History
41 lines (30 loc) · 1.7 KB

requestanimationframescheduler.md

File metadata and controls

41 lines (30 loc) · 1.7 KB

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: