code: async def connect(self):
          '''Get a connection from the pool.
  
          The connection is either a new one or retrieved from the
          :attr:`available` connections in the pool.
  
          :return: a :class:`~asyncio.Future` resulting in the connection.
          '''
          assert not self.closed
          connection = await self._get()
          return PoolConnection(self, connectionync def connect(self):
          '''Get a connection from the pool.
  
          The connection is either a new one or retrieved from the
          :attr:`available` connections in the pool.
  
          :return: a :class:`~asyncio.Future` resulting in the connection.
          '''
          assert not self.closed
          connection = await self._get()
          return PoolConnection(self, connection)
docs: Get a connection from the pool.
  
          The connection is either a new one or retrieved from the
          :attr:`available` connections in the pool.
  
          :return: a :class:`~asyncio.Future` resulting in the connection.