Class Threads

java.lang.Object
io.github.javaezlib.javaez.extensions.Threads

public class Threads extends Object
Threads extension for JavaEZ, allowing you to run something parallel to your other code
Since:
1.0
Author:
Red050911
  • Constructor Details

    • Threads

      public Threads()
  • Method Details

    • runParallel

      public static void runParallel(Runnable run)
      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