PiBrowserTaskbarPhoenix. Runtime
(pi_browser_taskbar_phoenix v0.1.0)
Copy Markdown
Owns one persistent Pi RPC process and serializes task admission for a host project.
Summary
Functions
Requests idempotent cancellation of the retained task.
Returns a specification to start this module under a supervisor.
Returns the startup-fixed access configuration.
Starts and confirms a fresh Pi session while preserving rejected state.
Returns the canonical current snapshot.
Starts a project-scoped Pi runtime.
Atomically admits one task or returns the current busy snapshot.
Types
Functions
@spec cancel(GenServer.server(), String.t()) :: {:ok, :accepted | :cancelled, snapshot()} | {:error, :not_found | :not_cancellable | :unavailable, snapshot()}
Requests idempotent cancellation of the retained task.
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec config(GenServer.server()) :: %{allowed_hosts: [String.t()]}
Returns the startup-fixed access configuration.
@spec reset(GenServer.server()) :: {:ok, snapshot()} | {:error, :reset_while_busy | :session_reset_rejected | :unavailable, snapshot()}
Starts and confirms a fresh Pi session while preserving rejected state.
@spec snapshot(GenServer.server()) :: snapshot()
Returns the canonical current snapshot.
@spec start_link(keyword()) :: GenServer.on_start()
Starts a project-scoped Pi runtime.
@spec submit(GenServer.server(), PiBrowserTaskbarPhoenix.Task.t()) :: {:ok, snapshot()} | {:error, :busy | :unavailable, snapshot()}
Atomically admits one task or returns the current busy snapshot.