interval

import { interval } from 'rxjs';

// Emit a value every 4 seconds
interval(4000).subscribe((x) => {
  console.log(x);
})