Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/staltz/callbag-interval

👜 A callbag listenable source that sends incremental numbers every x milliseconds.
https://github.com/staltz/callbag-interval

Last synced: 26 days ago
JSON representation

👜 A callbag listenable source that sends incremental numbers every x milliseconds.

Awesome Lists containing this project

README

        

# callbag-interval

A callbag listenable source that sends incremental numbers every x milliseconds.

`npm install callbag-interval`

## example

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

const source = interval(1000);

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