callbag-interval
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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
                                      // ...

Readme

Keywords

Package Sidebar

Install

npm i callbag-interval

Weekly Downloads

789

Version

1.2.0

License

MIT

Unpacked Size

3.88 kB

Total Files

8

Last publish

Collaborators

  • staltz