exda v0.1.0 API Reference
Modules
Use this consumer module whenever you would like to provision a module to accept events from a producer.
This will call a GenServer
resulting in all message
being processed in its own pid asynchronously.
This will use Task.start/3
and call each specified consumer as
a new task with its own pid.
A Synchronous message bus that will call the consumer directly on the same caller process.
This GenServerConsumer is used by specifying the event names
that can be processed by this event. to as well as a restart type which will
be used to create a child spec for any module uses GenServerConsumer
.
Producers should be used to generate convience methods(:notify_{event_name}) to produce messages for all the attached consumer.