Class SerialExecutor

    • Constructor Detail

      • SerialExecutor

        public SerialExecutor​(Executor executor)
    • Method Detail

      • waitUntilInactive

        public void waitUntilInactive()
        Waits until there are no active tasks.
      • close

        public void close()
        Shuts down the executor. No subsequent tasks will run, but any running task will be left to complete.
        Specified by:
        close in interface AutoCloseable