code: async def detach(self, discard=True):
          '''Remove the underlying :attr:`connection` from the connection
          :attr:`pool`.
          '''
          if discard:
              return self.close(True)
          else:
              self.connection._exit_ = False
              return selync def detach(self, discard=True):
          '''Remove the underlying :attr:`connection` from the connection
          :attr:`pool`.
          '''
          if discard:
              return self.close(True)
          else:
              self.connection._exit_ = False
              return self
docs: Remove the underlying :attr:`connection` from the connection
          :attr:`pool`.