Skip to content

Commit 08a9824

Browse files
committed
Update 3ch.md
Add a note of caution re: fork, per haskell-distributed/distributed-process#245.
1 parent 6ce7188 commit 08a9824

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: tutorials/3ch.md

+2
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ liftIO; but [MonadBaseControl IO][mbc] also makes things like a lifted [withMVar
530530
really just a specialization of [bracket][lbrkt]. You will also find lots of other libraries on hackage which
531531
use these instances - at present count there are more than 150 [packages using it][reverse].
532532

533+
One note of caution: This instance can enable use of functions such as `forkIO` (or, `fork` from lifted-base[lbase]) which compromise invariants in the `Process` monad and can lead to confusing and subtle issues. Always use the Cloud Haskell functions such as spawnLocal instead.
534+
533535

534536
[1]: hackage.haskell.org/package/distributed-process/docs/Control-Distributed-Process.html#v:receiveWait
535537
[2]: hackage.haskell.org/package/distributed-process/docs/Control-Distributed-Process.html#v:expect

0 commit comments

Comments
 (0)