Class DeterministicExecutor

    • Constructor Detail

      • DeterministicExecutor

        public DeterministicExecutor()
    • Method Detail

      • isIdle

        public boolean isIdle()
        Returns whether this executor is idle -- has no pending background tasks waiting to be run.
        Returns:
        true if there are no background tasks to be run, false otherwise.
        See Also:
        runPendingCommands(), runUntilIdle()
      • runPendingCommands

        public void runPendingCommands()
        Runs all commands that are currently pending. If those commands also schedule commands for execution, the scheduled commands will not be executed until the next call to runPendingCommands() or runUntilIdle().
      • runUntilIdle

        public void runUntilIdle()
        Runs executed commands until there are no commands pending execution, but does not tick time forward.