pool_sup v0.2.1 PoolSup.Worker behaviour
Behaviour definition of worker processes to be managed by PoolSup
.
To implement PoolSup.Worker
behaviour it’s enough to implement just one function start_link/1
.
The start_link/1
callback function is invoked by PoolSup
to spawn a new process.
The argument passed to worker’s start_link/1
is the second argument of PoolSup.start_link/4
.