worker_pool
worker_pool copied to clipboard
add optional worker callbacks
Starting in erlang 20, a gen_server has optional callbacks like handle_info, terminate and code_change. But the current worker behaviour enforce them. IMO we should expect the worker API to be similar to a gen_server. Thoughts?
You're entirely correct. Optional gen_server callbacks should also be optional for wpool.