MCPcopy Create free account
hub / github.com/MultithreadedJSBook/code-samples / worker.js

File worker.js

ch8-template-render/worker.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1const { parentPort } = require('worker_threads');
2const template = require('./template.js');
3
4function asyncOnMessageWrap(fn) {

Callers

nothing calls this directly

Calls 1

asyncOnMessageWrapFunction · 0.70

Tested by

no test coverage detected