Jido.Browser.PoolAdapter behaviour (Jido Browser v2.1.0)

Copy Markdown View Source

Optional behaviour for adapters that support warm pooled sessions.

Pool-capable adapters keep the public Jido.Browser API flat by exposing the same pool lifecycle functions behind a common capability boundary.

Summary

Callbacks

start_pool(keyword)

@callback start_pool(keyword()) :: {:ok, pid()} | {:error, term()}

start_supervised_pool(keyword)

@callback start_supervised_pool(keyword()) :: GenServer.on_start()

stop_pool(term)

@callback stop_pool(term()) :: :ok | {:error, term()}