Safe Haskell | None |
---|---|
Language | Haskell2010 |
- closeLocalNode :: MonadBase IO m => LocalNode -> m ()
- forkProcess :: MonadBase IO m => LocalNode -> Process () -> m ProcessId
- newLocalNode :: MonadBase IO m => Transport -> RemoteTable -> m LocalNode
- runProcess :: MonadBase IO m => LocalNode -> Process () -> m ()
- fromProcess :: forall a m. (NFData a, MonadBase IO m) => LocalNode -> Process a -> m a
- data LocalNode :: *
- initRemoteTable :: RemoteTable
- localNodeId :: LocalNode -> NodeId
Documentation
forkProcess :: MonadBase IO m => LocalNode -> Process () -> m ProcessId Source
Generalized version of forkProcess
.
newLocalNode :: MonadBase IO m => Transport -> RemoteTable -> m LocalNode Source
Generalized version of newLocalNode
.
runProcess :: MonadBase IO m => LocalNode -> Process () -> m () Source
Generalized version of runProcess
fromProcess :: forall a m. (NFData a, MonadBase IO m) => LocalNode -> Process a -> m a Source
A variant of runProcess
which returns a value. This works just
like runProcess
by forking a new process with a captured MVar, but it
will take the result of the computation. If the computation throws an
exception, it will be re-thrown by fromProcess
in the calling thread.
localNodeId :: LocalNode -> NodeId
NodeId
of the node