git.iko.soy/distributed-process
on master help sign in
Further doc updates
d215728Tim Watson
src/Control/Distributed/Process/Internal/Primitives.hs+5−4
@@ -306,11 +306,12 @@ expect = receiveWait [match return]
306-- Channels --
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
311+-- Note that the channel is bound to the lifecycle of the process that evaluates
312−-- this function, such that if the calling process dies/exits, the channel will
312+-- this function, such that when it dies/exits, the channel will no longer
313−-- no longer be accessible, and reading from the ReceivePort will fail.
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--
315newChan :: Serializable a => Process (SendPort a, ReceivePort a)
316newChan :: Serializable a => Process (SendPort a, ReceivePort a)
316newChan = do
317newChan = do