def save_rule!(objectID, rule, forward_to_replicas = false, request_options = {})
      res = save_rule(objectID, rule, forward_to_replicas, request_options)
      wait_task(res['taskID'], WAIT_TASK_DEFAULT_TIME_BEFORE_RETRY, request_options)
      return res
    end
def save_rule!(objectID, rule, forward_to_replicas = false, request_options = {})
      res = save_rule(objectID, rule, forward_to_replicas, request_options)
      wait_task(res['taskID'], WAIT_TASK_DEFAULT_TIME_BEFORE_RETRY, request_options)
      return res
    end
Save a rule and wait the end of indexing

 @param objectID the rule objectID
 @param rule the rule
 @param forward_to_replicas should we forward the delete to replica indices
 @param request_options contains extra parameters to send with your query