Skip to content

v3.1.0

Latest

Choose a tag to compare

@mourner mourner released this 05 Jun 09:17

Add first-class support for typed-array-backed queues via capacity constructor argument — if provided, the queue will be backed by typed arrays (Float64Array for values and Uint32Array for ids by default, configurable):

const q = new FlatQueue(64, /* values */ Uint32Array, /* ids */ Uint16Array);