Summary
Functions
Returns a specification to start this module under a supervisor.
Finalizes the context and then stops its process, releasing the supervised process and everything it retains (data, attributes, assignment caches).
Supervisor shutdown budget (ms) so a context can finish its bounded final publish.
Types
@type t() :: GenServer.server()
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Finalizes the context and then stops its process, releasing the supervised process and everything it retains (data, attributes, assignment caches).
Use this at the end of a request/session lifecycle. Disposal always releases
the process: if the final publish keeps failing, it is retried up to
:attempts times (default 3, with :backoff ms between attempts, default
100), after which the unpublished events are discarded, the process is
stopped anyway and {:error, {:disposed_unpublished, reason}} is
returned so the caller can observe that events were not delivered. Returns
:ok when everything was published.
After dispose/1 the pid is dead, so inspection helpers such as
is_finalized?/1 must be called before it.
Supervisor shutdown budget (ms) so a context can finish its bounded final publish.