code: public void waitTask(String taskID, long timeToWait) throws AlgoliaException {
      this.waitTask(taskID, timeToWait, RequestOptions.empty);
    }
docs: Wait the publication of a task on the server.
  All server task are asynchronous and you can check with this method that the task is published.
  
  @param taskID     the id of the task returned by server
  @param timeToWait time to sleep seed