worker_pool icon indicating copy to clipboard operation
worker_pool copied to clipboard

add optional worker callbacks

Open benoitc opened this issue 6 years ago • 1 comments

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?

benoitc avatar Feb 19 '19 09:02 benoitc

You're entirely correct. Optional gen_server callbacks should also be optional for wpool.

elbrujohalcon avatar Feb 19 '19 10:02 elbrujohalcon