Package org.polyfrost.polyui.utils
Class Clock.ConditionalExecutor
-
- All Implemented Interfaces:
public final class Clock.ConditionalExecutor extends Clock.Executor
An executor that will do its function until the given condition is true.
- Since:
0.18.1
-
-
Field Summary
Fields Modifier and Type Field Description private final Booleanfinishedprivate final LongexecuteEveryNanos
-
Constructor Summary
Constructors Constructor Description Clock.ConditionalExecutor(Long executeEveryNanos, Function0<Boolean> condition, Function0<Unit> func)
-
Method Summary
Modifier and Type Method Description BooleangetFinished()-
-
Method Detail
-
getFinished
Boolean getFinished()
-
-
-
-