Packages
poolex
0.9.0-rc.2
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.0
1.5.0-rc.0
1.4.2
1.4.1
1.4.0
1.3.0
1.2.1
1.2.0
1.1.0
1.0.0
1.0.0-rc.0
0.10.0
0.9.0
0.9.0-rc.2
0.9.0-rc.1
0.9.0-rc.0
0.8.0
0.8.0-rc.1
0.8.0-rc.0
0.7.6
0.7.5
0.7.4
retired
0.7.3
0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.1
0.5.0
0.4.0
0.3.1
retired
0.3.0
retired
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
The library for managing pools of workers.
Current section
Files
Jump to
Current section
Files
lib/poolex/private/debug_info.ex
defmodule Poolex.Private.DebugInfo do
@moduledoc """
Information with the current state of the pool.
Can be used for debugging.
"""
defstruct busy_workers_count: 0,
busy_workers_impl: nil,
busy_workers_pids: [],
idle_workers_count: 0,
idle_workers_impl: nil,
idle_workers_pids: [],
max_overflow: 0,
overflow: 0,
waiting_callers_impl: nil,
waiting_callers: [],
worker_args: [],
worker_module: nil,
worker_start_fun: nil
@type t() :: %__MODULE__{
busy_workers_count: non_neg_integer(),
busy_workers_impl: module(),
busy_workers_pids: list(pid()),
idle_workers_count: non_neg_integer(),
idle_workers_impl: module(),
idle_workers_pids: list(pid()),
max_overflow: non_neg_integer(),
overflow: non_neg_integer(),
waiting_callers_impl: module(),
waiting_callers: list(pid()),
worker_args: list(any()),
worker_module: module(),
worker_start_fun: atom()
}
end