Backplane. AgentRuntime. Scheduler
(backplane_agent_runtime v1.6.0)
Copy Markdown
Bounded work admission with explicit overload.
A scheduler is immutable data. It does not spawn processes or own execution. Host adapters use it to separate bounded execution slots from waiting continuations.
Summary
Types
@type t() :: map()
Functions
@spec admit(t(), term(), term()) :: {:ok, t(), %{status: :admitted | :queued}} | {:error, Backplane.AgentRuntime.Error.t()}
@spec new(non_neg_integer()) :: {:ok, t()} | {:error, Backplane.AgentRuntime.Error.t()}
@spec promote(t(), term()) :: {:ok, t()} | {:error, Backplane.AgentRuntime.Error.t()}
@spec release(t(), term()) :: {:ok, t()} | {:error, Backplane.AgentRuntime.Error.t()}