Class Executors

    • Method Detail

      • directExecutor

        public static Executor directExecutor()
        Return a direct executor. The direct executor directly executes the runnable in the calling thread.
        Returns:
        Direct executor
      • newDirectExecutorService

        public static ExecutorService newDirectExecutorService()
        Creates a more ExecutorService that runs the passed task in the calling thread.