Backplane.AiProtocol.ExecutionGate (backplane_ai_protocol v0.7.0)

Copy Markdown

Single-use execution handle gate.

This is a pure state transition. Runtime wrappers own actual process/supervision effects.

Summary

Types

t()

@type t() :: %Backplane.AiProtocol.ExecutionGate{
  claimed: boolean(),
  finished: boolean(),
  handle: term() | nil
}

Functions

claim(gate)

@spec claim(t()) :: {:ok, t()} | {:error, Backplane.AiProtocol.Error.t()}

finish(gate)

@spec finish(t()) :: {:ok, t()} | {:error, Backplane.AiProtocol.Error.t()}

new()

@spec new() :: t()

open(execution_gate)

@spec open(t()) :: {:ok, t()} | {:error, Backplane.AiProtocol.Error.t()}