you don't see it in the api documents but it still part of osbot.
example call conditional sleep to have it wait
if (getInventory().contains(getEnergy())) {
getBank().depositAll();
new ConditionalSleep(2000, 100) {
@Override
public boolean condition() throws InterruptedException {
return getInventory().isEmpty();
}
}.sleep();
}