MCPcopy Create free account
hub / github.com/Effect-TS/effect / send

Function send

packages/platform/node/src/NodeWorkerRunner.ts:44–45  ·  view source on GitHub ↗
(_portId: number, message: O, transfers?: ReadonlyArray<unknown>)

Source from the content-addressed store, hash-verified

42 ? (_portId: number, message: any, transfers?: any) => WorkerThreads.parentPort!.postMessage(message, transfers)
43 : (_portId: number, message: any, _transfers?: any) => process.send!(message)
44 const send = (_portId: number, message: O, transfers?: ReadonlyArray<unknown>) =>
45 Effect.sync(() => sendUnsafe(_portId, [1, message], transfers as any))
46
47 const run = <A, E, R>(
48 handler: (portId: number, message: I) => Effect.Effect<A, E, R> | void

Callers

nothing calls this directly

Calls 2

sendUnsafeFunction · 0.50
syncMethod · 0.45

Tested by

no test coverage detected