def available_services(index = nil)
      loop do
        begin
          resp, nindex = _service.get_all(index: index)
          return [resp.keys - ['consul'], nindex] if nindex != index
        rescue Diplomat::Timeout
          # Continue waiting
        end
      end
    end
def available_services(index = nil)
      loop do
        begin
          resp, nindex = _service.get_all(index: index)
          return [resp.keys - ['consul'], nindex] if nindex != index
        rescue Diplomat::Timeout
          # Continue waiting
        end
      end
    end
Blocks forever waiting for updates to the list of available services.