Handbook
Glossary
from ( channel -- value )
Channels
Prev:
to ( value channel -- )
Vocabulary
channels
Inputs
channel
a
channel
Outputs
value
an
object
Word description
Receives an object from a channel. The operation is synchronous. It will block the calling thread until there is data in the channel.
See also
<channel>
,
to
Definition
IN:
channels
GENERIC:
from
( channel -- value )
Methods
USING:
accessors
channels
channels.private
kernel
sequences
threads
;
M:
channel
from
[
self
]
dip
notify
senders>>
[
(from)
]
unless-empty
"channel receive"
suspend
;
USING:
accessors
channels
channels.remote
channels.remote.private
kernel
;
M:
remote-channel
from
[
id>>
from-message
boa
]
keep
send-message
;