UNPKG

ts-batch-processor

Version:

A batch processor with event emitter for browser and node.js

6 lines (5 loc) 170 B
export const validateConcurrency = (concurrency) => { if (!concurrency || concurrency <= 0) { throw new Error("Concurrency must be greater than 0"); } };