UNPKG

zeebe-node

Version:

The Node.js client library for the Zeebe Workflow Automation Engine.

15 lines 467 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Queue = void 0; class Queue { constructor() { this.q = []; this.push = (element) => this.q.push(element); this.pop = () => this.q.shift(); this.isEmpty = () => this.q.length > 0; this.drain = () => this.q.splice(0, this.q.length); this.length = () => this.q.length; } } exports.Queue = Queue; //# sourceMappingURL=Queue.js.map