start method

void start()

Start the heartbeat and immediately attempt a recovery pass for anything left dirty by a previous process.

Implementation

void start() {
  if (_disposed) return;
  _backoff = baseBackoff;
  _heartbeatTimer?.cancel();
  _heartbeatTimer = Timer.periodic(heartbeat, (_) => syncNow('heartbeat'));
  unawaited(syncNow('startup'));
}