Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
const
{ parentPort } = require(
'worker_threads'
);
2
const
template = require(
'./template.js'
);
3
4
function
asyncOnMessageWrap(fn) {
Callers
nothing calls this directly
Calls
1
asyncOnMessageWrap
Function · 0.70
Tested by
no test coverage detected