Goroutines pool with priority queue buffer
Find a file
2021-10-23 18:16:40 +03:00
.github Reformat priopool as library package 2021-10-23 18:16:40 +03:00
go.mod Reformat priopool as library package 2021-10-23 18:16:40 +03:00
go.sum Reformat priopool as library package 2021-10-23 18:16:40 +03:00
LICENSE Reformat priopool as library package 2021-10-23 18:16:40 +03:00
pool.go Reformat priopool as library package 2021-10-23 18:16:40 +03:00
pool_test.go Reformat priopool as library package 2021-10-23 18:16:40 +03:00
queue.go Reformat priopool as library package 2021-10-23 18:16:40 +03:00
README.md Reformat priopool as library package 2021-10-23 18:16:40 +03:00

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.