Class Threads
java.lang.Object
io.github.javaezlib.javaez.extensions.Threads
Threads extension for JavaEZ, allowing you to run something parallel to your other code
- Since:
- 1.0
- Author:
- Red050911
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrunParallel(Runnable run) Allows you to run code parallel to your other code.
-
Constructor Details
-
Threads
public Threads()
-
-
Method Details
-
runParallel
Allows you to run code parallel to your other code. Example: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.- Parameters:
run- What to run parallel- Since:
- 1.0
-