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

Safe HaskellNone
LanguageHaskell98

Control.Distributed.Process.Node

Description

Local nodes

Synopsis

Documentation

data LocalNode Source

Local nodes

newLocalNode :: Transport -> RemoteTable -> IO LocalNode Source

Initialize a new local node.

closeLocalNode :: LocalNode -> IO () Source

Force-close a local node

TODO: for now we just close the associated endpoint

forkProcess :: LocalNode -> Process () -> IO ProcessId Source

Spawn a new process on a local node

runProcess :: LocalNode -> Process () -> IO () Source

Run a process on a local node and wait for it to finish