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

Function ResponseExitDieEncoded

packages/effect/src/unstable/rpc/RpcMessage.ts:336–349  ·  view source on GitHub ↗
(options: {
  readonly requestId: RequestId
  readonly defect: unknown
})

Source from the content-addressed store, hash-verified

334 * @since 4.0.0
335 */
336export const ResponseExitDieEncoded = (options: {
337 readonly requestId: RequestId
338 readonly defect: unknown
339}): ResponseExitEncoded => ({
340 _tag: "Exit",
341 requestId: options.requestId,
342 exit: {
343 _tag: "Failure",
344 cause: [{
345 _tag: "Die",
346 defect: encodeDefect(options.defect)
347 }]
348 }
349})
350
351/**
352 * Creates a transport-encoded defect response by encoding the input with

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected