
thread_peek_message(+Queue, -Message)

   Check for Message in Queue

Arguments
   Queue               A DTR-thread or DTR-queue handle or alias
   Message             Message term, possibly partially instantiated

Type
   library(threads)

Description

    Unifies Message with (a copy of) an entry in Queue, if possible.

    Essentially equivalent to recorded/2.


Modes and Determinism
   thread_peek_message(+, -) is det

See Also
   record_wait_remove / 3, message_queue_create / 2
