Class DeepJExecutor
java.lang.Object
io.github.kirstenali.deepj.concurrent.DeepJExecutor
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidforRange(int startInclusive, int endExclusive, IntConsumer body) static intstatic booleanstatic voidsetNumThreads(int n) static voidsetParallelEnabled(boolean enabled) static voidshutdown()
-
Method Details
-
setNumThreads
public static void setNumThreads(int n) -
getNumThreads
public static int getNumThreads() -
setParallelEnabled
public static void setParallelEnabled(boolean enabled) -
isParallelEnabled
public static boolean isParallelEnabled() -
shutdown
public static void shutdown() -
forRange
-