MCPcopy Create free account
hub / github.com/beutton/browser-flight-simulator / createPool

Function createPool

packages/worker/src/pool.ts:10–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8let pool: Pool | undefined
9
10function createPool(): Pool {
11 return (
12 pool ??
13 (pool = workerpool.pool(worker, {
14 workerOpts: {
15 type: 'module'
16 }
17 }))
18 )
19}
20
21type Method = keyof typeof methods
22type MethodParams<T extends Method> = Parameters<(typeof methods)[T]>

Callers 1

queueTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected