Module

Pinto.Types

Package
erl-pinto
Repository
id3as/purescript-erl-pinto

#RegistryName Source

data RegistryName serverType

The name of a registered process, these map to {local, Name} {global, GlobalName} {via, Module, ViaName} as per the docs for gen_server:start_link and similar

Constructors

#StartLinkResult Source

type StartLinkResult serverProcess = Either (NotStartedReason serverProcess) serverProcess

#NotStartedReason Source

data NotStartedReason serverProcess

Constructors

#maybeStarted Source

maybeStarted :: forall serverProcess. StartLinkResult serverProcess -> Maybe serverProcess

#maybeRunning Source

maybeRunning :: forall serverProcess. StartLinkResult serverProcess -> Maybe serverProcess

#crashIfNotStarted Source

crashIfNotStarted :: forall serverProcess. StartLinkResult serverProcess -> serverProcess

#crashIfNotRunning Source

crashIfNotRunning :: forall serverProcess. StartLinkResult serverProcess -> serverProcess

#startLinkResultFromPs Source

#registryInstance Source

registryInstance :: forall serverPid serverType. HasPid serverPid => RegistryReference serverPid serverType -> RegistryInstance serverPid serverType

Given a RegistryReference serverPid serverType

Create a RegistryInstance serverPid serverType that can be used to communicate with that process directly

#RegistryInstance Source

#RegistryReference Source

data RegistryReference serverPid serverType

A means of looking up a typed process (such as a GenServer) that may or may not be registered

This is typically used by the APIs provided to gain access to the ability to invoke code within the context of a started server

GenServer.call (ByName serverName) \_from a...

Constructors

#ExitMessage Source

data ExitMessage

Constructors

#ExportsTo Source

class ExportsTo a b  where

Members