poll-stream

0.0.2 • Public • Published

node-poll-stream

poll a function on an interval emit data

 
var poller = require('poll-stream');
 
poller(function(cb){
  doSomething(cb);
},1000).pipe(process.stdout)
 

i subtract the time to run the async function from the polling interval to let it sample as close to interval as possible.

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i poll-stream

Weekly Downloads

3

Version

0.0.2

License

none

Last publish

Collaborators

  • soldair