public void runUntilIdle() {
    while (!isIdle()) {
      runNextPendingCommand();
    }
  }
Runs all commands scheduled to be executed immediately but does not tick time forward.
imagepipeline-base-test/src/main/java/com/facebook/imagepipeline/testing/ScheduledQueue.java