xstate
Version:
Finite State Machines and Statecharts for the Modern Web.
24 lines (20 loc) • 457 B
JavaScript
Object.defineProperty(exports, '__esModule', { value: true });
var children = /*#__PURE__*/new Map();
var sessionIdIndex = 0;
var registry = {
bookId: function () {
return "x:".concat(sessionIdIndex++);
},
register: function (id, actor) {
children.set(id, actor);
return id;
},
get: function (id) {
return children.get(id);
},
free: function (id) {
children.delete(id);
}
};
exports.registry = registry;
;