- 👷 Same worker can be added multiple times
- 👌 Improved performance
- 👷 Delegate job returns now error if there is no workers
⚡️ Interface update,
Startmethod was removed in favour of
RemoveWorkerallowing to handle the worker update during pool lifecycle.
Optimise function reflect value
✂ Remove internal context cancel usage, range over channel instead of doing select
Return from goroutine if channel has been closed
v1.0.3February 01, 2019
pool.Stop()has been called will panic due to closed channel.
pool.Startagain will return context error.
Delegate function is now blocking due to the issue where the goroutine won't run at all since delegate function has not other command to run after the goroutine has started.
Now you have to run Delegate function in a goroutine by yourself to avoid blocking.
v1.0.0October 05, 2017