stop method

void stop()

Implementation

void stop() {
  _polling = false;
  _gen++;
  _timer?.cancel();
  _timer = null;
}