Create an emitter that repeatedly emits events with a fixed time delay
between each event. The interval doesn't start until the emitter is observed, and
stops when there are no more observers.
Parameters
ms: number
Delay in milliseconds between each event and before the first
event.
Create an emitter that repeatedly emits events with a fixed time delay between each event. The interval doesn't start until the emitter is observed, and stops when there are no more observers.