phasedb v0.0.2 PhaseDB.Subscription
Simple pub/sub process subscription using gproc.
Summary
Functions
List all the processes subscribed to this identifier
Broadcast an event to all processes subscribed to the identifier
Subscribe the current process to a given identifier
Tell me if this process is subscribed to this identifier
Unsubscribe the current process from the given identifier
Unsubscribe all processes from the given identifier
Types
Functions
Specs
all_subscribers(id) :: [pid]
List all the processes subscribed to this identifier.
Broadcast an event to all processes subscribed to the identifier.
Specs
subscribed?(id, pid) :: boolean
Tell me if this process is subscribed to this identifier.
Specs
unsubscribe(id) :: :ok
Unsubscribe the current process from the given identifier.
Specs
unsubscribe_all(id) :: :ok
Unsubscribe all processes from the given identifier.