SimplestPubSub
Arguably pointlessly simple immplementation of local Pub Sub using a registry for dispatch, as per https://hexdocs.pm/elixir/Registry.html#module-using-as-a-pubsub. It doesn't do much but I often end up writing the same code over again, especially in Nerves projects so here it is.
anticipated-questions
Anticipated questions
this-is-less-code-than-left-pad-why-should-i-not-just-implement-this-directly-in-my-own-project
This is less code than Left-Pad. Why should I not just implement this directly in my own project?
I'm not stopping you.
why-shouldn-t-i-use-phoenix-pubsub-instead
Why shouldn't I use Phoenix.PubSub instead?
I'm not stopping you.
installation
Installation
This hexicle can be installed by adding simplest_pub_sub
to your list of dependencies in mix.exs
:
def deps do
[
{:simplest_pub_sub, "~> 0.1.0"}
]
end