Starts a one-shot timer; injectable for tests.
typedef RelayTimerFactory = Timer Function(Duration duration, void Function() callback);