lib/ury_rapid/services/response_buffer.rb
def try_satisfy_requests
        @satisfying_requests = true
        can_satisfy = true
        while can_satisfy && !@requests.empty?
          request = @requests.first
          can_satisfy = try_satisfy_request(request)
          @requests.delete(request) if can_satisfy
        end
        @satisfying_requests = false
      end
# Tries to satisfy as many requests for data as possible
#
# @return [void]
Tries to satisfy as many requests for data as possible
Tries to satisfy as many requests for data as possible
def try_satisfy_requests
        @satisfying_requests = true
        can_satisfy = true
        while can_satisfy && !@requests.empty?
          request = @requests.first
          can_satisfy = try_satisfy_request(request)
          @requests.delete(request) if can_satisfy
        end
        @satisfying_requests = false
      end
def try_satisfy_requests @satisfying_requests = true can_satisfy = true while can_satisfy && ! @requests . empty? request = @requests . first can_satisfy = try_satisfy_request ( request ) @requests . delete ( request ) if can_satisfy end @satisfying_requests = false end
Tries to satisfy as many requests for data as possible
Tries to satisfy as many requests for data as possible
None
void