Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 337 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 337 Bytes

PoolProc

Description Create pool of workers based on the Registry module introduced in elixir v1.4

Usage

# create a pool with 5 workers
PoolProc.Pool.create_pool :test_pool, [pool_size: 5]

# get a worker from the pool send fn

PoolProc.Pool.get_worker(:test_pool)
  |> PoolProc.Pool.send_worker(fn -> 1 end)