Module
Pinto
- Package
- erl-pinto
- Repository
- id3as/purescript-erl-pinto
The base Pinto module re-exports most of the library's useful types and thats about it
#isRegistered Source
isRegistered :: forall serverType. RegistryName serverType -> Effect Boolean
Checks if a particular process name is registered using 'whereis_name'
serverType
can be anything, but most likely it'll be GenServer.ServerType or GenStatem.ServerType
Re-exports from Pinto.Types
#StartLinkResult Source
type StartLinkResult serverProcess = Either (NotStartedReason serverProcess) serverProcess
#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
ByPid serverPid
ByName (RegistryName serverType)
#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
#startLinkResultFromPs Source
startLinkResultFromPs :: forall a. StartLinkResult a -> Foreign
#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