git.iko.soy/distributed-process
on master help sign in
Cross-reference from 'call' to 'Closure'
6274bb2Edsko de Vries
distributed-process/src/Control/Distributed/Process.hs+12−2
@@ -256,6 +256,11 @@ import Control.Distributed.Process.Serializable (Serializable)
256--------------------------------------------------------------------------------
256--------------------------------------------------------------------------------
257
257
258-- | Spawn a process
258-- | Spawn a process
259+--
260+-- For more information about 'Closure', see
261+-- "Control.Distributed.Process.Closure".
262+--
263+-- See also 'call'.
259spawn :: NodeId -> Closure (Process ()) -> Process ProcessId
264spawn :: NodeId -> Closure (Process ()) -> Process ProcessId
260spawn nid proc = do
265spawn nid proc = do
261 us <- getSelfPid
266 us <- getSelfPid
@@ -299,8 +304,13 @@ spawnMonitor nid proc = do
299
304
300-- | Run a process remotely and wait for it to reply
305-- | Run a process remotely and wait for it to reply
301--
306--
302−-- We monitor the remote process; if it dies before it can send a reply, we die
307+-- We monitor the remote process: if it dies before it can send a reply, we die
303−-- too
308+-- too.
309+--
310+-- For more information about 'Static', 'SerializableDict', and 'Closure', see
311+-- "Control.Distributed.Process.Closure".
312+--
313+-- See also 'spawn'.
304call :: Serializable a => Static (SerializableDict a) -> NodeId -> Closure (Process a) -> Process a
314call :: Serializable a => Static (SerializableDict a) -> NodeId -> Closure (Process a) -> Process a
305call dict nid proc = do
315call dict nid proc = do
306 us <- getSelfPid
316 us <- getSelfPid