Gate Executor is a work queue that supports gating: it can pause processing of the main queue until sub-queues (gates) complete. Current stable version is 3.3.1. It is maintained by the Seneca.js organization and follows a semver release cadence. Key differentiators include the ability to create nested sub-queues forming a tree structure, breadth-first execution order, and efficient timeout handling using a shared setInterval. It ships TypeScript types and requires Node >=12.0.0. Primarily used by Seneca microservice framework for plugin initialization but can be used standalone.
npm install gate-executorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a GateExecutor, adding work items, creating a gate (sub-queue), and starting execution to show breadth-first order.
Call GateExecutor() without new.
Add work items with a gate to enforce ordering.
Always call done() in work items, or set appropriate timeout via options.
Call GateExecutor() without 'new': const ge = GateExecutor();
Run 'npm install gate-executor'. Ensure import/require path is 'gate-executor'.
No dependency data recorded yet.