Run the heartbeat task exactly every "x" seconds.
Remove WaitAsync from AsyncMetronome class and rename class to Metronome.