stop method

Future<void> stop()

Collect what is left, write the footers and close the file.

Implementation

Future<void> stop() async {
  if (_stopped) return;
  _stopped = true;
  await _loop;
  await _pull();
  await _offsets();
  await _writer.close();
  for (final s in streams) {
    await s.inlet.close();
  }
}