public final class ThreadUtils
extends Object
| Constructor and Description |
|---|
ThreadUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
runInNewThread(String threadName,
boolean isDaemon,
java.util.concurrent.Callable<T> body)
Based on Apache Spark's ThreadUtils.runInNewThread
Run a piece of code in a new thread and return the result.
|