callbag-interval

A callbag listenable source that sends incremental numbers every x milliseconds

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
callbag-interval
1631.2.04 years ago6 years agoMinified + gzip package size for callbag-interval in KB

Readme

callbag-interval
A callbag listenable source that sends incremental numbers every x milliseconds.
npm install callbag-interval

example

const interval = require('callbag-interval');
const observe = require('callbag-observe');

const source = interval(1000);

observe(x => console.log(x))(source); // 0
                                      // 1
                                      // 2
                                      // 3
                                      // ...