receive ( -- message )
Message-passing concurrency ยป Sending and receiving messages

Prev:send ( message thread -- )
Next:receive-timeout ( timeout -- message )


Vocabulary
concurrency.messaging

Inputs
None

Outputs
messagean object


Word description
Return a message from the current thread's mailbox. If the box is empty, suspend the thread until another thread places an item in the mailbox (usually via the send word).

See also
send, receive-if

Definition