Class NonParallelExecutor

    • Method Detail

      • invoke

        public <T> java.util.concurrent.Future<T> invoke​(Invokable<T> invocable)
        Description copied from interface: ParallelExecutor
        Submits the invocable object to be executed in a pooled thread. Returns a Future object representing the eventual result of the invocable's operation. The actual operation will be wrapped such that PerthreadManager.cleanup() is invoked after the operation completes.
        Specified by:
        invoke in interface ParallelExecutor
        Parameters:
        invocable - to execute in a thread
        Returns:
        Future result of that invocation