toolbuilder

toolbuilder/priority-buffer

Priority queue/buffer with capacity limits and custom comparator. Methods push/shift/length match the Array API.

JavaScript
0
0
MIT License

PriorityBuffer is a JavaScript library that implements a fixed-length priority queue with custom comparator functionality, designed for use with iterable queues like Await-For-It. It's ideal for developers who need to maintain a buffer of prioritized items with automatic eviction of lower-priority elements when capacity is reached, while maintaining the familiar Array API methods (push/shift/length) for easy integration.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

toolbuilder's profile
toolbuilder
32 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet