Ash.Signals.Delivery.Context (ash v3.36.0)

Copy Markdown View Source

The context in which a signal was emitted, passed to Ash.Signals.Delivery.deliver/4.

It implements Ash.Scope.ToOpts, so Ash.Scope.to_opts(context) returns the options to run listeners with.

Summary

Types

t()

@type t() :: %Ash.Signals.Delivery.Context{
  action: atom() | nil,
  actor: term(),
  authorize?: boolean() | nil,
  resource: Ash.Resource.t(),
  signal: Ash.Signals.Signal.t(),
  signal_module: Ash.Signals.t(),
  source_context: map(),
  tenant: term(),
  tracer: Ash.Tracer.t() | [Ash.Tracer.t()] | nil
}