1.0.3 • Published 8 years ago
rx-raf-throttle v1.0.3
rx-raf-throttle
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))