EDA.Gateway.Events (EDA v0.3.0)

Copy Markdown View Source

Handles dispatching Gateway events to consumers and updating caches.

Every event that carries state is used to keep the ETS caches up-to-date in real time (JDA-style). The consumer callback runs asynchronously so it never blocks the gateway.

Summary

Functions

Dispatches an event to the configured consumer and updates caches.

Functions

dispatch(event_type, data)

@spec dispatch(String.t(), map()) :: :ok

Dispatches an event to the configured consumer and updates caches.