Fail-fast physical-attempt admission and ownership runtime.
Each runtime is an independent capacity domain. Global and per-group limits are reserved atomically, and a reservation is released only after the guardian has observed the complete attempt tree go down. Runtime generation failure fences old counters instead of resetting them under surviving work.
Summary
Functions
Returns whether the current runtime generation is ready to admit.
Returns a bounded global and per-group admission counter snapshot.
Starts an independent physical-connection capacity domain linked to its owner.
Types
@type option() :: {:max_concurrency, pos_integer()} | {:groups, %{required(binary()) => pos_integer()}}
@type t() :: pid()
Functions
Returns whether the current runtime generation is ready to admit.
@spec snapshot(t()) :: {:ok, map()} | {:error, PtcLlmHttp.Error.t()}
Returns a bounded global and per-group admission counter snapshot.
@spec start_link([option()]) :: {:ok, t()} | {:error, PtcLlmHttp.Error.t()}
Starts an independent physical-connection capacity domain linked to its owner.