Box.PoolProcessor.Manager.State (box v0.15.1)
View SourceSummary
Types
@type init_option() :: {:supervisor_pid, pid()} | {:size, non_neg_integer()} | {:queue, queue_spec() | module()}
@type queue() :: {queue_spec(), queue_state()}
@type queue_state() :: any()
@type queue_state_mapper() :: (queue_spec(), queue_state() -> queue_state())
Functions
@spec enqueue(t(), function(), [GenServer.from()]) :: t()
@spec init([init_option()]) :: {:load_queue, t()} | {:ok, t()}
@spec map_queue_state(t(), queue_state_mapper()) :: t()