Poolder.FactoryPool behaviour (Poolder v0.1.10)
View SourceDynamic pool of grouped processes with fast lookup by group or pid.
Usage examples
# Start a worker under group :http Poolder.FactoryPool.start_child(:http, {MyWorker, args})
# Synchronous call to specific pid Poolder.FactoryPool.call(pid, :ping)
# Async message to a specific pid Poolder.FactoryPool.cast(pid, :refresh)
# Broadcast to all workers in a group Poolder.FactoryPool.broadcast(:http, :reload)
# Count active workers in a group Poolder.FactoryPool.count(:http)