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

Function isInitMessage

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

Source from the content-addressed store, hash-verified

37const debugThreadUtils = DebugLogger("threads:master:thread-utils")
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

Callers 1

receiveInitMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected