close method

  1. @override
Future<void> close()
override

Waits for the reads in flight, then releases the file handle. Idempotent.

Implementation

@override
Future<void> close() async {
  if (_closed) return;
  _closed = true;
  await _tail;
  await _raf.close();
}