Files
ospab.host/node_modules/effect/dist/cjs/internal/stm/txnId.js
2025-09-15 18:10:26 +03:00

18 lines
326 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.make = void 0;
/** @internal */
const txnCounter = {
ref: 0
};
/** @internal */
const make = () => {
const newId = txnCounter.ref + 1;
txnCounter.ref = newId;
return newId;
};
exports.make = make;
//# sourceMappingURL=txnId.js.map