git.iko.soy/distributed-process
on master help sign in
Cross-reference from 'call' to 'Closure'
commit6274bb24d1ee736b09e9eb4add7d54f571a862a5 authorEdsko de Vries <edsko@edsko.net> dateWed 18 Jul 2012, 08:54 (14 years ago) parent0f4f83a
1 file changed+12−2
distributed-process/src/Control/Distributed/Process.hs+12−2
distributed-process/src/Control/Distributed/Process.hs+12−2
@@ -256,6 +256,11 @@ import Control.Distributed.Process.Serializable (Serializable)
256256--------------------------------------------------------------------------------
257257
258258-- | Spawn a process
259+--
260+-- For more information about 'Closure', see
261+-- "Control.Distributed.Process.Closure".
262+--
263+-- See also 'call'.
259264spawn :: NodeId -> Closure (Process ()) -> Process ProcessId
260265spawn nid proc = do
261266 us <- getSelfPid
@@ -299,8 +304,13 @@ spawnMonitor nid proc = do
299304
300305-- | Run a process remotely and wait for it to reply
301306--
302−-- We monitor the remote process; if it dies before it can send a reply, we die
303−-- too
307+-- We monitor the remote process: if it dies before it can send a reply, we die
308+-- too.
309+--
310+-- For more information about 'Static', 'SerializableDict', and 'Closure', see
311+-- "Control.Distributed.Process.Closure".
312+--
313+-- See also 'spawn'.
304314call :: Serializable a => Static (SerializableDict a) -> NodeId -> Closure (Process a) -> Process a
305315call dict nid proc = do
306316 us <- getSelfPid