Safe Haskell | None |
---|---|
Language | Haskell98 |
Local nodes
- data LocalNode
- newLocalNode :: Transport -> RemoteTable -> IO LocalNode
- closeLocalNode :: LocalNode -> IO ()
- forkProcess :: LocalNode -> Process () -> IO ProcessId
- runProcess :: LocalNode -> Process () -> IO ()
- initRemoteTable :: RemoteTable
- localNodeId :: LocalNode -> NodeId
Documentation
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
runProcess :: LocalNode -> Process () -> IO () Source
Run a process on a local node and wait for it to finish
localNodeId :: LocalNode -> NodeId Source
NodeId
of the node