MCPcopy
hub / github.com/coder/mux / cancel

Method cancel

src/node/services/askUserQuestionManager.ts:59–66  ·  view source on GitHub ↗
(workspaceId: string, toolCallId: string, reason: string)

Source from the content-addressed store, hash-verified

57 }
58
59 cancel(workspaceId: string, toolCallId: string, reason: string): void {
60 assert(workspaceId.length > 0, "workspaceId must be non-empty");
61 assert(toolCallId.length > 0, "toolCallId must be non-empty");
62 assert(reason.length > 0, "reason must be non-empty");
63
64 const entry = this.getPending(workspaceId, toolCallId);
65 entry.reject(new Error(reason));
66 }
67
68 cancelAll(workspaceId: string, reason: string): void {
69 assert(workspaceId.length > 0, "workspaceId must be non-empty");

Callers 1

cancelAllMethod · 0.95

Calls 2

getPendingMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected