forgetBefore method

void forgetBefore(
  1. int seq
)

Drops the oldest events so that resuming before seq is impossible (forces resync).

Implementation

void forgetBefore(int seq) {
  while (_ring.isNotEmpty && _ring.first.seq < seq) {
    _ring.removeFirst();
  }
}