Did you know ... Search Documentation:
Predicate wait/2