code: public static void waitForDeletions()
      {
          Runnable runnable = new Runnable()
          {
              public void run()
              {
              }
          };
  
          FBUtilities.waitOnFuture(ScheduledExecutors.nonPeriodicTasks.schedule(runnable, 0, TimeUnit.MILLISECONDS));
      }
docs: for tests