MCPcopy Index your code
hub / github.com/andywer/threads.js / createProxyModule

Function createProxyModule

src/master/invocation-proxy.ts:141–152  ·  view source on GitHub ↗
(
  worker: WorkerType,
  methodNames: string[]
)

Source from the content-addressed store, hash-verified

139}
140
141export function createProxyModule<Methods extends ModuleMethods>(
142 worker: WorkerType,
143 methodNames: string[]
144): ModuleProxy<Methods> {
145 const proxy: any = {}
146
147 for (const methodName of methodNames) {
148 proxy[methodName] = createProxyFunction(worker, methodName)
149 }
150
151 return proxy
152}

Callers 1

spawnFunction · 0.90

Calls 1

createProxyFunctionFunction · 0.85

Tested by

no test coverage detected