forgetBefore method
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();
}
}
Drops the oldest events so that resuming before seq is impossible (forces resync).
void forgetBefore(int seq) {
while (_ring.isNotEmpty && _ring.first.seq < seq) {
_ring.removeFirst();
}
}