MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / rejectAll

Function rejectAll

packages/node-sdk/examples/runtime-smoke-helpers.ts:123–130  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

121 };
122
123 const rejectAll = (error: Error): void => {
124 if (settled) return;
125 settled = true;
126 dispose();
127 started.reject(error);
128 firstDelta?.reject(error);
129 ended.reject(error);
130 };
131
132 unsubscribe = session.onEvent((event) => {
133 logEvent(event);

Callers 1

watchPromptStreamFunction · 0.85

Calls 2

disposeFunction · 0.70
rejectMethod · 0.65

Tested by

no test coverage detected