git.iko.soy/distributed-process
on master help sign in
Further doc updates
commitd2157281d18cb6d762b964976bb757eddb47279a authorTim Watson <watson.timothy@gmail.com> dateThu 22 Nov 2018, 15:48 (8 years ago) parent7930062
1 file changed+5−4
src/Control/Distributed/Process/Internal/Primitives.hs+5−4
src/Control/Distributed/Process/Internal/Primitives.hs+5−4
@@ -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--
315316newChan :: Serializable a => Process (SendPort a, ReceivePort a)
316317newChan = do