Handbook
Glossary
receive ( -- message )
Message-passing concurrency
ยป
Sending and receiving messages
Prev:
send ( message thread -- )
Next:
receive-timeout ( timeout -- message )
Vocabulary
concurrency
.
messaging
Inputs
None
Outputs
message
an
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
USING:
concurrency.mailboxes
;
IN:
concurrency.messaging
:
receive
( -- message )
my-mailbox
mailbox-get
?linked
;