close method

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

Release any resources the client holds (sockets, queues). Idempotent and safe to call concurrently with an in-flight send.

Implementation

@override
Future<void> close() async {
  _closed = true;
}