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