WorkerPool::Worker(A)
This class defines a simple forever-running Worker.
The implementations of this abstract class will only
have to define the process and on_error methods to have
a simple but robust Worker
Constants
Log = ::Log.for(self)
Constructors
Instance methods
on_error(error)
This method will get called whenever an error raises when processing a new workload
process(workload : A)
This method will get called each time the worker processes a new workload