code: public void runNextPendingCommand() {
      long peakDelay = mQueue.getHeadDelay();
      ScheduledTask<?> scheduledTask = mQueue.pop();
      scheduledTask.run();
      if (!scheduledTask.isCancelled() && scheduledTask.isRepeat()) {
        mQueue.add(scheduledTask.mRepeatDelay + peakDelay, scheduledTask);
      }
    }
docs: Runs the next command scheduled to be executed immediately.