[ library(threads) | Reference Manual | Alphabetic Index ]

thread_peek_message(+Queue, -Message)

Check for Message in Queue
Queue
A DTR-thread or DTR-queue handle or alias
Message
Message term, possibly partially instantiated

Description

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

Essentially equivalent to recorded/2.

Modes and Determinism

See Also

record_wait_remove / 3, message_queue_create / 2