code: public static void settleBackgroundOps()
    {
      editor.util.TaskQueue backgroundQueue = getBackgroundQueue();
      if( backgroundQueue != null )
      {
        final Object wait = new Object();
        synchronized( wait )
        {
          doBackgroundOp( new Runnable()
          {
            public void run()
            {
              synchronized( wait )
              {
                wait.notifyAll();
              }
            }
          } );
  
          try
          {
            wait.wait();
          }
          catch( InterruptedException e )
          {
            //ignore
          }
        }
      }
    }
docs: Pumps through all current events in the background operation queue.  Note that this is *NOT* a settle.
  Any operations added after this method is invoked will not be executed.