finish method
Closes the connection gracefully and waits for ongoing writes to be finished
Implementation
Future<void> finish() async {
await output.allSent;
close();
}
Closes the connection gracefully and waits for ongoing writes to be finished
Future<void> finish() async {
await output.allSent;
close();
}