const require_pLimit = require('./pLimit.cjs');

//#region ../chokidar/dist/esm/utils/parallelize.mjs
const parallelize = async (items, callback = async (item) => item, parallelLimit = 10) => {
	const limit = require_pLimit.pLimit(parallelLimit);
	return Promise.all(items.map((item) => limit(() => callback(item))));
};

//#endregion
exports.parallelize = parallelize;
//# sourceMappingURL=parallelize.cjs.map