greg 4d1d2f8c52
Some checks failed
continuous-integration/drone Build is failing
maj
2023-06-11 20:17:11 +02:00

16 lines
450 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setChild = setChild;
exports.child = void 0;
// This file is imported by both the WorkerFarm and child implementation.
// When a worker is inited, it sets the state in this file.
// This way, WorkerFarm can access the state without directly importing the child code.
let child = null;
exports.child = child;
function setChild(c) {
exports.child = child = c;
}