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

Method interrupt

packages/effect/src/unstable/cluster/Reply.ts:113–126  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

111 * @since 4.0.0
112 */
113 static interrupt(options: {
114 readonly id: Snowflake
115 readonly requestId: Snowflake
116 }): ReplyWithContext<any> {
117 return new ReplyWithContext({
118 reply: new WithExit({
119 requestId: options.requestId,
120 id: options.id,
121 exit: Exit.interrupt()
122 }),
123 context: Context.empty() as any,
124 rpc: neverRpc
125 })
126 }
127}
128
129const neverRpc = Rpc.make("Never", {

Callers 15

Client.test.tsFile · 0.45
Client.test.tsFile · 0.45
Client.test.tsFile · 0.45
e2eSuiteFunction · 0.45
startWatchFunction · 0.45
_destroyMethod · 0.45
DenoSocket.test.tsFile · 0.45
e2eSuiteFunction · 0.45
assertTickerSurvivesFunction · 0.45

Calls

no outgoing calls

Tested by 2

startWatchFunction · 0.36
assertTickerSurvivesFunction · 0.36