finish method

Future<void> finish()

Closes the connection gracefully and waits for ongoing writes to be finished

Implementation

Future<void> finish() async {
  await output.allSent;
  close();
}