Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MultithreadedJSBook/code-samples
/ main.js
File
main.js
ch6-thread-pool/main.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
#!/usr/bin/env node
2
const
http = require(
'http'
);
3
const
RpcWorkerPool = require(
'./rpc-worker.js'
);
4
const
worker =
new
RpcWorkerPool(
'./worker.js'
,
Callers
nothing calls this directly
Calls
1
exec
Method · 0.45
Tested by
no test coverage detected