Spectre.Run.Boundary (Spectre v0.3.0)

Copy Markdown View Source

Observable boundary emitted while advancing a Spectre.Run.

Reply boundaries carry user-visible output. Policy boundaries carry the transport-safe Spectre.Run.Request that must be resolved by a trusted host. The authoritative Awaitable stays in Run State. The accompanying Spectre.Run.Ref fences the response to the exact Run revision that produced it.

Summary

Types

kind()

@type kind() :: :reply | :needs

t()

@type t() :: %Spectre.Run.Boundary{
  id: String.t(),
  kind: kind(),
  metadata: map(),
  output: term(),
  ref: Spectre.Run.Ref.t(),
  request: Spectre.Run.Request.t() | nil
}