MCPcopy Create free account
hub / github.com/andywer/threads.js / spawnHelloWorld

Function spawnHelloWorld

test/pool.test.ts:10–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 let taskFnCalled = 0
9
10 const spawnHelloWorld = () => {
11 spawnCalled++
12 return spawn<() => string>(new Worker("./workers/hello-world"))
13 }
14 const pool = Pool(spawnHelloWorld, 3)
15 pool.events().subscribe(event => events.push(event))
16

Callers

nothing calls this directly

Calls 1

spawnFunction · 0.85

Tested by

no test coverage detected