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