finishOldestFrame method

void finishOldestFrame()

Lets the oldest unfinished frame complete.

Implementation

void finishOldestFrame() {
  if (pendingFrames.isEmpty) return;
  pendingFrames.removeAt(0)();
}