Handbook
Glossary
receive-if-timeout ( timeout pred -- message )
Message-passing concurrency
ยป
Sending and receiving messages
Prev:
receive-if ( pred -- message )
Vocabulary
concurrency
.
messaging
Inputs
timeout
an
object
pred
an
object
Outputs
message
an
object
Definition
USING:
concurrency.mailboxes
kernel
;
IN:
concurrency.messaging
:
receive-if-timeout
( timeout pred -- message )
[
my-mailbox
]
2dip
mailbox-get-timeout?
?linked
;
inline