Current section
Files
Jump to
Current section
Files
include/bath_State.hrl
-record(state, {
checkout_strategy :: bath:checkout_strategy(),
creation_strategy :: bath:creation_strategy(),
max_size :: integer(),
create_resource :: fun(() -> {ok, any()} | {error, binary()}),
shutdown_resource :: fun((any()) -> nil),
resources :: gleam@deque:deque(any()),
current_size :: integer(),
live_resources :: gleam@dict:dict(gleam@erlang@process:pid_(), bath:live_resource(any())),
waiting :: gleam@deque:deque(bath:waiting_request(any())),
selector :: gleam@erlang@process:selector(bath:msg(any())),
log_errors :: boolean()
}).