closeConnection method
Initiates a graceful shutdown of a connection.
This method attempts to close the connection cleanly, allowing any in-flight operations to complete. If the graceful shutdown exceeds the configured timeout, the connection may be forcibly closed.
conn
The transport connection to close.
Implementation
@override
Future<void> closeConnection(TransportConn conn) {
return Future.delayed(Duration(milliseconds: 10));
}