We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18991ec commit c8d5376Copy full SHA for c8d5376
tutorials/3ch.md
@@ -59,12 +59,15 @@ demo = do
59
send listener "hello"
60
getSelfPid >>= send listener
61
() <- expect
62
+ return ()
63
where
64
listen = do
65
third <- expect :: Process ProcessId
66
first <- expect :: Process String
67
second <- expectTimeout 100000 :: Process (Maybe String)
- mapM_ (say . show) [first, second, third]
68
+ (say . show) first
69
+ (say . show) second
70
+ (say . show) third
71
send third ()
72
{% endhighlight %}
73
0 commit comments