@newdash/newdash
Version:
javascript/typescript utility library
26 lines (25 loc) • 691 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MutexMap = void 0;
const SemaphoreMap_1 = __importDefault(require("./SemaphoreMap"));
/**
* Mutex Map
*
* @since 5.20.0
* @category Functional
*/
class MutexMap extends SemaphoreMap_1.default {
/**
* Mutex Map Implementation
*
* @param maximumMutex to avoid OOM, the default value is 1000000
*/
constructor(maximumMutex = 1000 * 1000) {
super(maximumMutex, 1);
}
}
exports.MutexMap = MutexMap;
exports.default = MutexMap;