simple-queue
Source: lib/simple-queue.js
Chromium's SimpleQueue as used by the streams specification: a FIFO built from bounded arrays in a linked list, so it does not suffer the scalability problems of one packed array. stream uses it for its internal queues.
import { SimpleQueue } from 'simple-queue';
const q = new SimpleQueue();
q.push(1), q.push(2);
q.shift(); // 1
q.length; // 1Export list
Generated by utilities/doc-api.js from the simple-queue dump of utilities/api-surface.sh: 9 members. Edit the text above this block, not the block.
SimpleQueue
class, constructible
- methods:
forEach(),peek(),push(),shift(),[Symbol.iterator]() - properties:
length (get),[Symbol.toStringTag]