waitUntil

public final SequentialCommand waitUntil(BooleanSupplier condition)

Waits until condition returns true after this command finishes.