Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ worker-name.js
File
worker-name.js
test/fixtures/worker-name.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
const
{ Session } = require(
'inspector'
);
2
const
{ parentPort } = require(
'worker_threads'
);
3
4
const
session =
new
Session();
Callers
nothing calls this directly
Calls
6
connectToMainThread
Method · 0.80
require
Function · 0.50
once
Method · 0.45
on
Method · 0.45
postMessage
Method · 0.45
post
Method · 0.45
Tested by
no test coverage detected