UNPKG

buflux

Version:

A high-performance, event-driven buffer library for Node.js and browsers, with configurable overflow strategies

12 lines (11 loc) 402 B
/** * 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 var OverflowMode; (function (OverflowMode) { OverflowMode["REJECT"] = "reject"; OverflowMode["EVICT"] = "evict"; })(OverflowMode || (OverflowMode = {}));