Ejemplo n.º 1
0
 def close(self):
     """
     Close the connection.
     Returns the connect's `shutdown_future`, which completes when shutdown has finished.
     """
     _awscrt.http_connection_close(self._binding)
     return self.shutdown_future
Ejemplo n.º 2
0
    def close(self):
        """Close the connection.

        Shutdown is asynchronous. This call has no effect if the connection is already
        closing.

        Returns:
            concurrent.futures.Future: This connection's :attr:`shutdown_future`,
            which completes when shutdown has finished.
        """
        _awscrt.http_connection_close(self._binding)
        return self.shutdown_future