Skip to content

Commit

Permalink
Cross-reference from 'call' to 'Closure'
Browse files Browse the repository at this point in the history
  • Loading branch information
edsko committed Jul 18, 2012
1 parent 0f4f83a commit 6274bb2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions distributed-process/src/Control/Distributed/Process.hs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ import Control.Distributed.Process.Serializable (Serializable)
--------------------------------------------------------------------------------

-- | Spawn a process
--
-- For more information about 'Closure', see
-- "Control.Distributed.Process.Closure".
--
-- See also 'call'.
spawn :: NodeId -> Closure (Process ()) -> Process ProcessId
spawn nid proc = do
us <- getSelfPid
Expand Down Expand Up @@ -299,8 +304,13 @@ spawnMonitor nid proc = do

-- | Run a process remotely and wait for it to reply
--
-- We monitor the remote process; if it dies before it can send a reply, we die
-- too
-- We monitor the remote process: if it dies before it can send a reply, we die
-- too.
--
-- For more information about 'Static', 'SerializableDict', and 'Closure', see
-- "Control.Distributed.Process.Closure".
--
-- See also 'spawn'.
call :: Serializable a => Static (SerializableDict a) -> NodeId -> Closure (Process a) -> Process a
call dict nid proc = do
us <- getSelfPid
Expand Down

0 comments on commit 6274bb2

Please sign in to comment.