File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -141,13 +141,15 @@ main = do
141
141
{% endhighlight %}
142
142
143
143
Note that we've used ` receiveWait ` this time around to get a message.
144
- ` receiveWait ` and similarly named functions can be used with the [ ` Match ` ] [ 5 ]
145
- data type to provide a range of advanced message processing capabilities. The
146
- ` match ` primitive allows you to construct a "potential message handler" and
147
- have it evaluated against received (or incoming) messages. Think of a list of
148
- ` Match ` es as the distributed equivalent of a pattern match. As with ` expect ` ,
149
- if the mailbox does not contain a message that can be matched, the evaluating
150
- process will be blocked until a message arrives which _ can_ be matched.
144
+ ` receiveWait ` and similarly named functions can be used with the
145
+ [ ` Match ` data type] [ 5 ] to provide a range of advanced message
146
+ processing capabilities. The ` match ` primitive allows you to construct
147
+ a "potential message handler" and have it evaluated against received
148
+ (or incoming) messages. Think of a list of ` Match ` es as the
149
+ distributed equivalent of a pattern match. As with ` expect ` , if the
150
+ mailbox does not contain a message that can be matched, the evaluating
151
+ process will be blocked until a message arrives which _ can_ be
152
+ matched.
151
153
152
154
In the _ echo server_ above, our first match prints out whatever string it
153
155
receives. If the first message in our mailbox is not a ` String ` , then our
You can’t perform that action at this time.
0 commit comments