closeConnection abstract method

Future<void> closeConnection(
  1. TransportConn conn
)

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

Future<void> closeConnection(TransportConn conn);