Interface IRunnableQueue

  • All Known Subinterfaces:
    IEngine
    All Known Implementing Classes:
    Engine

    public interface IRunnableQueue
    Defines the contract of the asynchronous runnable queue.
    • Field Detail

      • IMMEDIATE

        static final IRunnableQueue IMMEDIATE
        Runnable queue with the immediate execution of runnables.
    • Method Detail

      • queueAndWaitRunnable

        void queueAndWaitRunnable​(Runnable runnable)
        Queues the runnable for execution and waits for its completion. The runnables queued during the passed runnable execution are also executed before this method returns. Typically, runnables created as a result of the user interaction with the UI should be executed synchronously using this method.
        Parameters:
        runnable - the runnable to queue and wait for.
        See Also:
        queueRunnable(Runnable)