MCPcopy Create free account
hub / github.com/microsoft/SandDance / WorkerThread1

Function WorkerThread1

docs/app/js/sanddance-app.js:53692–53701  ·  view source on GitHub ↗
(_ref2)

Source from the content-addressed store, hash-verified

53690}
53691var WorkerThread = function() {
53692 function WorkerThread1(_ref2) {
53693 var source = _ref2.source, _ref2$name = _ref2.name, name = _ref2$name === void 0 ? "web-worker-".concat(count++) : _ref2$name, onMessage = _ref2.onMessage;
53694 (0, _classCallCheckDefault.default)(this, WorkerThread1);
53695 var url = (0, _getWorkerUrl.getWorkerURL)(source, name);
53696 this.worker = new Worker(url, {
53697 name: name
53698 });
53699 this.name = name;
53700 this.onMessage = onMessage || defaultOnMessage;
53701 }
53702 (0, _createClassDefault.default)(WorkerThread1, [
53703 {
53704 key: "process",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected