MCPcopy
hub / github.com/Effect-TS/effect / interrupt

Method interrupt

packages/cluster/src/Reply.ts:75–88  ·  view source on GitHub ↗

* @since 1.0.0

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

Source from the content-addressed store, hash-verified

73 * @since 1.0.0
74 */
75 static interrupt(options: {
76 readonly id: Snowflake
77 readonly requestId: Snowflake
78 }): ReplyWithContext<any> {
79 return new ReplyWithContext({
80 reply: new WithExit({
81 requestId: options.requestId,
82 id: options.id,
83 exit: Exit.interrupt(FiberId.none)
84 }),
85 context: Context.empty() as any,
86 rpc: neverRpc
87 })
88 }
89}
90
91const neverRpc = Rpc.make("Never", {

Callers 15

e2eSuiteFunction · 0.45
suiteFunction · 0.45
FileSystem.test.tsFile · 0.45
_destroyMethod · 0.45
HttpServer.test.tsFile · 0.45
e2eSuiteFunction · 0.45
workerRunner.tsFile · 0.45
spawnFunction · 0.45
handleMessageFunction · 0.45
causeResponseFunction · 0.45
writeFunction · 0.45

Calls

no outgoing calls

Tested by 1

RateLimiterTestSuiteFunction · 0.36