Skip to content

A callbag implementation of interval that immediately emits the first value

License

Notifications You must be signed in to change notification settings

reaktivo/callbag-interval-immediate

Repository files navigation

callbag-interval-immediate

GitHub license npm version Coverage Status Build status

A callbag listenable source that sends an initial number synchronously and then incrementally every x milliseconds.

npm install callbag-interval-immediate

example

const interval = require("callbag-interval-immediate");
const observe = require("callbag-observe");

const source = interval(1000);

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

About

A callbag implementation of interval that immediately emits the first value

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published