buflux
Version:
A high-performance, event-driven buffer library for Node.js and browsers, with configurable overflow strategies
11 lines (10 loc) • 313 B
TypeScript
/**
* Defines strategies for handling buffer overflow conditions
* @enum {string}
* @property {string} REJECT - Blocks new items when buffer is full
* @property {string} EVICT - Removes oldest item to make room for new items
*/
export declare enum OverflowMode {
REJECT = "reject",
EVICT = "evict"
}