(cls, connection: Connection)
Perform the actual close operation.
Perform the actual close operation.
Perform the actual close operation .
def _close_handle(cls, connection: Connection) -> None:
        """Perform the actual close operation."""
        # On windows, sometimes connection handles don't have a close() attr.
        if hasattr(connection.handle, 'close'):
            fire_event(ConnectionClosed2(conn_name=connection.name))
            connection.handle.close()
        else:
            fire_event(ConnectionLeftOpen2(conn_name=connection.name))
def _close_handle ( cls , connection : Connection ) -> None : # On windows, sometimes connection handles don't have a close() attr. if hasattr ( connection . handle , 'close' ) : fire_event ( ConnectionClosed2 ( conn_name = connection . name ) ) connection . handle . close ( ) else : fire_event ( ConnectionLeftOpen2 ( conn_name = connection . name ) )