thread_get_message/2

thread_get_message(+ Queue, ? Term)*

As thread_get_message//11, operating on a given queue. It is allowed to peek into another thread's message queue, an operation that can be used to check whether a thread has swallowed a message sent to it.