MCPcopy Index your code
hub / github.com/Effect-TS/effect / fromDefect

Method fromDefect

packages/cluster/src/Reply.ts:57–71  ·  view source on GitHub ↗

* @since 1.0.0

(options: {
    readonly id: Snowflake
    readonly requestId: Snowflake
    readonly defect: unknown
  })

Source from the content-addressed store, hash-verified

55 * @since 1.0.0
56 */
57 static fromDefect(options: {
58 readonly id: Snowflake
59 readonly requestId: Snowflake
60 readonly defect: unknown
61 }): ReplyWithContext<any> {
62 return new ReplyWithContext({
63 reply: new WithExit({
64 requestId: options.requestId,
65 id: options.id,
66 exit: Exit.die(Schema.encodeSync(Schema.Defect)(options.defect))
67 }),
68 context: Context.empty() as any,
69 rpc: neverRpc
70 })
71 }
72 /**
73 * @since 1.0.0
74 */

Callers 2

Sharding.tsFile · 0.80
decodeMessagesFunction · 0.80

Calls 1

dieMethod · 0.65

Tested by

no test coverage detected