Beta (still building)

timer

timer observable accept 2 arguments, initialDelay and period

Example: timer operator with only initialDelay

import { timer } from 'rxjs';

// delay 1 second to emit event
const source$ = timer(1000);

Example: timer operator with initialDelay and period

import { timer } from 'rxjs';

// delay 2 second and emit event every 1s
const source$ = timer(2000, 1000);

Official Doc: rxjs.timer