Class ThreadUtils

Object
io.delta.storage.internal.ThreadUtils

public final class ThreadUtils extends Object
  • Constructor Details

    • ThreadUtils

      public ThreadUtils()
  • Method Details

    • runInNewThread

      public static <T> T runInNewThread(String threadName, boolean isDaemon, Callable<T> body) throws Throwable
      Based on Apache Spark's ThreadUtils.runInNewThread Run a piece of code in a new thread and return the result.
      Throws:
      Throwable