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

Function isUncaughtErrorMessage

src/master/spawn.ts:40–40  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

38
39const isInitMessage = (data: any): data is WorkerInitMessage => data && data.type === ("init" as const)
40const isUncaughtErrorMessage = (data: any): data is WorkerUncaughtErrorMessage => data && data.type === ("uncaughtError" as const)
41
42const initMessageTimeout = typeof process !== "undefined" && process.env.THREADS_WORKER_INIT_TIMEOUT
43 ? Number.parseInt(process.env.THREADS_WORKER_INIT_TIMEOUT, 10)

Callers 1

receiveInitMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected