public class Threads extends Object
| Constructor and Description |
|---|
Threads() |
| Modifier and Type | Method and Description |
|---|---|
static void |
runParallel(Runnable run)
Allows you to run code parallel to your other code.
|
public static void runParallel(Runnable run)
runParallel(() -> say("Hello")); would say Hello but not in the same thread.
Useful if you want to run a loop without stopping your own code.run - What to run parallelCopyright © 2021. All rights reserved.