rx-raf-throttle

1.0.3 • Public • Published

rx-raf-throttle

Build Status npm Coverage Status Donate Bitcoin

throttles rx based streams using requestAnimationFrame

Installation

npm install rx-raf-throttle --save

rxRAFThrottle(source) ⇒ Observable

Throttles a stream using requestAnimationFrame. A value from the source stream is fired only once per requestAnimationFrame, see demo.

Kind: global function

Param Type
source Observable

Example

import {rxRAFThrottle} from 'rx-raf-throttle'
rxRAFThrottle(Rx.Observable.interval(1)).subscribe(x => console.log(x))

Package Sidebar

Install

npm i rx-raf-throttle

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • tusharmathur