Releases: xgfone/go-pools
Releases · xgfone/go-pools
v0.6.0
- Added:
- Add the capacity object pool
CapPool
.
- Add the
Get
method for the type Object
.
- Changed:
- Remove the task pool.
- Refactor the byte and interface slice pool and the buffer pool.
v0.5.0
- Changed:
- Use the generics to refactor the object pool.
v0.4.1
- Fixed:
- Re-implement
WaitAllTaskResults
to avoid panicking.
TaskStat.String()
renames TaskPool
to TaskStat
.
v0.4.0
- Added:
- Add the new pools
FixedBytesPool
and InterfacesPool
to support the types []interface{}
and the fixed size []slice
.
- Changed:
- Refactor the pools
BytesPool
and BufferPool
.
v0.3.0
- Added:
TaskPool
supports the default task and only submits the task arguments. For example,
pool := pools.NewTaskPool(10, 100)
pool.SetDefaultTask(pools.TaskFunc(func(ctx context.Context, args ...interface{}) (interface{}, error) { ... }))
pool.Submit(arg11, arg12, arg13)
pool.Submit(arg21, arg22, arg23)
pool.Submit(arg31, arg32, arg33)
v0.2.0
- Fixed:
- Rename the module name from
github.com/xgfone/pools
to github.com/xgfone/go-pools
.