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 4ccd1c5 commit 17bf571Copy full SHA for 17bf571
tutorials/1ch.md
@@ -138,6 +138,9 @@ main = do
138
-- Die immediately - throws a ProcessExitException with the given reason.
139
Nothing -> die "nothing came back!"
140
Just s -> say $ "got " ++ s ++ " back!"
141
+
142
+ -- Without the following delay, the process sometimes exits before the messages are exchanged.
143
+ liftIO $ threadDelay 2000000
144
{% endhighlight %}
145
146
Note that we've used `receiveWait` this time around to get a message.
0 commit comments