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

Method interrupt

packages/effect/src/cluster/Reply.ts:123–136  ·  view source on GitHub ↗

* Creates a terminal reply context that interrupts the supplied request. * * @stability unstable * @since 4.0.0

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

Source from the content-addressed store, hash-verified

121 * @since 4.0.0
122 */
123 static interrupt(options: {
124 readonly id: Snowflake
125 readonly requestId: Snowflake
126 }): ReplyWithContext<any> {
127 return new ReplyWithContext({
128 reply: new WithExit({
129 requestId: options.requestId,
130 id: options.id,
131 exit: Exit.interrupt()
132 }),
133 context: Context.empty() as any,
134 rpc: neverRpc
135 })
136 }
137}
138
139const neverRpc = Rpc.make("Never", {

Calls

no outgoing calls

Tested by 3

makeStubbornFunction · 0.36
makeCleanupFunction · 0.36
makeAppFunction · 0.36