Packages

The goal of ResourcePool (rsrc_pool_ex) Elixir library is reduce the overhead of creating new resources by reusing of the same resources among multiple processes.

Current section

Files

Jump to
rsrc_pool_ex test utils.ex
Raw

test/utils.ex

defmodule Utils do
def f(pool), do: ResourcePool.get_number(pool)
def f2(pool), do: {ResourcePool.get_num_active(pool), ResourcePool.get_num_idle(pool)}
end