Creates a callbag source that emits an increasing number at given interval.
1linkfunction interval(period: number): Source<number>
1linkimport { interval, subscribe, pipe } from 'callbag-common';
2link
3linkconst span = document.querySelector('span');
4linkpipe(
5link interval(1000),
6link subscribe(i => span.textContent = `You've been here ${i} seconds.`)
7link)