* @since 1.0.0
(options: {
readonly id: Snowflake
readonly requestId: Snowflake
})
| 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 | |
| 91 | const neverRpc = Rpc.make("Never", { |
no outgoing calls