See man page for details. In short, the function allows to peek at the thread exit status and even see return value, without joining the target.
I wrote some tests for cancellation and needed a way to non-destructively see the exit state of the thread.