While
Perform non-blocking loops using an evaluator callback to run the loop. This should be paired with an update(), activeLoop() or onInitLoop(), and this runs synchronously with the main loop.
public void activeLoop() {
whileLoop.run();
// Your other active loop code
// You can choose to block the entire loop until the while loop is done by using a guard clause
// as the run method will return a boolean indicating if the loop was run.
}
Content copied to clipboard
Author
Lucas Bubner, 2023
Since
1.0.0-pre