File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/Control/Distributed/Process/Internal Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -306,11 +306,12 @@ expect = receiveWait [match return]
306
306
-- Channels --
307
307
--------------------------------------------------------------------------------
308
308
309
- -- | Create a new typed channel
309
+ -- | Create a new typed channel, bound to the calling Process
310
310
--
311
- -- Note that the channel is bound to the lifecycle of the process that evaluated
312
- -- this function, such that if the calling process dies/exits, the channel will
313
- -- no longer be accessible, and reading from the ReceivePort will fail.
311
+ -- Note that the channel is bound to the lifecycle of the process that evaluates
312
+ -- this function, such that when it dies/exits, the channel will no longer
313
+ -- function, but will remain accessible. Thus reading from the ReceivePort will
314
+ -- fail silently thereafter, blocking indefinitely (unless a timeout is used).
314
315
--
315
316
newChan :: Serializable a => Process (SendPort a , ReceivePort a )
316
317
newChan = do
You can’t perform that action at this time.
0 commit comments