async def disconnect(self):
        """Gracefully disconnect from the server.

        When disconnection is complete, :func:`connect` will return.
        """
        logger.info('Graceful disconnect requested')
        # Cancel the listen task. We don't need an additional yield because
        # listen cancels immediately.
        self._listen_future.cancel()
Gracefully disconnect from the server.

        When disconnection is complete, :func:`connect` will return.
        
hangups/client.py