Goroutines pool with priority queue buffer
Find a file
Alex Vanin 5d503a8465 Fix heap package usage
Adds tests to ensure order of submitted
tasks with the same priority.
2022-05-29 15:53:13 +03:00
.github Enable GitHub actions 2021-10-23 18:42:26 +03:00
.golangci.yml Enable GitHub actions 2021-10-23 18:42:26 +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 Fix heap package usage 2022-05-29 15:53:13 +03:00
pool_test.go Fix heap package usage 2022-05-29 15:53:13 +03:00
queue.go Fix heap package usage 2022-05-29 15:53:13 +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.