rxjs-requestidlecallback-scheduler
v0.0.3
Published
RxJS 5 scheduler using requestIdleCallback
Maintainers
Readme
rxjs-requestidlecallback-scheduler
rxjs-requestidlecallback-scheduler provides scheduler implementation to requestIdleCallback. Scheduling behavior follows AnimationFrameScheduler while actions are schduled via requestIdleCallback instead.
Install
This has a peer dependencies of rxjs@5.*.*, which will have to be installed as well
npm install --save-dev rxjs-requestidlecallback-schedulerUsage
import { idle } from `rxjs-requestidlecallback-scheduler`
Observable.of(true).subscribeOn(idle)...;Building / Testing
Few npm scripts are supported for build / test code.
build: Transpiles code to ES5 commonjs todist.build:clean: Clean up existing buildtest: Run unit test. It's tailored for CI environment (Browser, coverage config)lint: Run lint over all codebaseslint:staged: Run lint only for staged changes. This'll be executed automatically with precommit hook.commit: Commit wizard to write commit message
