import org.osbot.rs07.utility.ConditionalSleep;
import java.util.function.BooleanSupplier;
public final class Sleep extends ConditionalSleep {
private final BooleanSupplier condition;
public Sleep(final BooleanSupplier condition, final int timeout) {
super(timeout);
this.condition = condition;
}
public Sleep(final BooleanSupplier condition, final int timeout, final int interval) {
super(timeout, interval);
this.condition = condition;
}