Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/staltz/callbag-interval
- Owner: staltz
- License: mit
- Created: 2018-01-23T21:24:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-20T05:39:49.000Z (over 1 year ago)
- Last Synced: 2024-10-10T00:50:00.461Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 16
- Watchers: 3
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-callbags - interval
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
// ...
```