Releases: vardius/worker-pool
Releases · vardius/worker-pool
v2.1.0
- Same worker can be added multiple times
- Improved performance
- Delegate job returns now error if there is no workers
v2.0.0
Interface update, Start
method was removed in favour of AddWorker
and RemoveWorker
allowing to handle the worker update during pool lifecycle.
v1.1.6
Optimise function reflect value
v1.0.5
Remove internal context cancel usage, range over channel instead of doing select
v1.0.4
Return from goroutine if channel has been closed
v1.0.3
Fix workers when channel gets closed
v1.0.2
Now calling pool.Delegate()
after pool.Stop()
has been called will panic due to closed channel.
Calling pool.Start
again will return context error.
v1.0.1
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.