|
Smalltalk/X WebserverDocumentation of class 'MessageChannel': |
|
|
Class: MessageChannelInheritance:Object | +--Message | +--MessageSend | +--MessageChannel
Description:
MessageChannel provides the same functionality as MessageSend.
It has been provided for ST-80 compatibility.
Like with MessageSend, instances of MessageChannel can be used for
simulation programs.
They keep some receiver and selector and can be evaluated at any time later.
(think of them as a cheaper alternative to blocks).
In contrast to MessageSend, MessageChannels expect arguments to be passed
if all sends are going to the same receiver, use:
example:
|q|
q := Queue new:120.
1 to:100 do:[:i |
q nextPut:(MessageChannel receiver:i selector:#+).
].
[q notEmpty] whileTrue:[
|m|
m := q next.
(m value:1) printNL.
].
Class protocol:instance creationInstance protocol:evaluation
|
|
|
ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 10:29:47 GMT
|