Goroutines pool with priority queue buffer
.github | ||
.golangci.yml | ||
go.mod | ||
go.sum | ||
LICENSE | ||
pool.go | ||
pool_test.go | ||
queue.go | ||
README.md |
Goroutines pool with priority queue buffer.
Overview
Package priopool
provides goroutines pool based on
panjf2000/ants library with priority queue
buffer based on stdlib heap package.
Priority pool:
- is non-blocking,
- prioritizes tasks with higher priority value,
- can be configured with unlimited queue buffer.
Install
go get -u github.com/alexvanin/priopool
License
Source code is available under the MIT License.