Skip to content

Commit d215728

Browse files
committed
Further doc updates
1 parent 7930062 commit d215728

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Control/Distributed/Process/Internal/Primitives.hs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,12 @@ expect = receiveWait [match return]
306306
-- Channels --
307307
--------------------------------------------------------------------------------
308308

309-
-- | Create a new typed channel
309+
-- | Create a new typed channel, bound to the calling Process
310310
--
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).
314315
--
315316
newChan :: Serializable a => Process (SendPort a, ReceivePort a)
316317
newChan = do

0 commit comments

Comments
 (0)