Package Exports
- pull-ric
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pull-ric) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pull-ric
A pull through that works only on idle time
Usage
var pull = require('pull-stream')
var ric = require('pull-ric')
var pipe = pull(pull.infinite(),ric())
// pipe executes reads and cb from any reader on browser idle time
// this allows to do some work withowt interfering with render performance
setInterval(function(){return pipe(null, console.log)},5)It uses the average execution time of the readers cb to determine how many calls to do on each frame.
Todo
[ ] tests [ ] perf tests [ ] demo with animation