Flowdock
get_tagged_response(tag, cmd) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/net/imap.rb, line 1133
    def get_tagged_response(tag, cmd)
      until @tagged_responses.key?(tag)
        raise @exception if @exception
        @tagged_response_arrival.wait
      end
      resp = @tagged_responses.delete(tag)
      case resp.name
      when /\A(?:NO)\z/i
        raise NoResponseError, resp
      when /\A(?:BAD)\z/i
        raise BadResponseError, resp
      else
        return resp
      end
    end
Register or log in to add new notes.