Chimeway.Inbox.ChangePublisher behaviour (chimeway v1.2.0)

Copy Markdown View Source

Replaceable boundary for lossy inbox reload hints.

Publishing happens after durable writes and is intentionally best-effort. A callback cannot change the result of the notification operation that produced it.

Summary

Callbacks

publish(t)

@callback publish(Chimeway.Inbox.Change.t()) :: :ok | {:error, term()}

Functions

publish(tenant_id, recipient_ref, event)

@spec publish(term(), term(), term()) :: :ok