distributed-process-0.6.6: Cloud Haskell: Erlang-style concurrency in Haskell

Control.Distributed.Process.Internal.Spawn

Synopsis

# Documentation

Spawn a process

For more information about Closure, see Control.Distributed.Process.Closure.

See also call.

Spawn a process and link to it

Note that this is just the sequential composition of spawn and link. (The Unified semantics that underlies Cloud Haskell does not even support a synchronous link operation)

Like spawnLink, but monitor the spawned process

call :: Serializable a => Static (SerializableDict a) -> NodeId -> Closure (Process a) -> Process a Source #

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.

For more information about Static, SerializableDict, and Closure, see Control.Distributed.Process.Closure.

See also spawn.

Spawn a child process, have the child link to the parent and the parent monitor the child

spawnChannel :: forall a. Serializable a => Static (SerializableDict a) -> NodeId -> Closure (ReceivePort a -> Process ()) -> Process (SendPort a) Source #

Spawn a new process, supplying it with a new ReceivePort and return the corresponding SendPort.