[ library(threads) | Reference Manual | Alphabetic Index ]
Wait for and remove a message from Queue
- A DTR-thread or DTR-queue handle or alias
- Message term, possibly partially instantiated
Waits until Queue contains an entry that unifies with Message,
then removes and unifies this message with Message.
Essentially equivalent to record_wait_remove/3.
Modes and Determinism
- thread_get_message(+, ?) is det
record_wait_remove / 3, message_queue_create / 2