MCPcopy Create free account
hub / github.com/apache/maka / enqueueStopOperation

Method enqueueStopOperation

packages/runtime/src/runtime-kernel.ts:2144–2155  ·  view source on GitHub ↗
(
    sessionId: string,
    operation: StopOperation,
    input: StopSessionInput,
    deliverPending: boolean,
  )

Source from the content-addressed store, hash-verified

2142 }
2143
2144 private enqueueStopOperation(
2145 sessionId: string,
2146 operation: StopOperation,
2147 input: StopSessionInput,
2148 deliverPending: boolean,
2149 ): Promise<void> {
2150 const attempt = operation.queue
2151 .catch(() => undefined)
2152 .then(() => this.advanceStopOperation(sessionId, operation, input, deliverPending));
2153 operation.queue = attempt.catch(() => undefined);
2154 return attempt;
2155 }
2156
2157 private async advanceStopOperation(
2158 sessionId: string,

Callers 2

stopSessionAttemptMethod · 0.95

Calls 1

advanceStopOperationMethod · 0.95

Tested by

no test coverage detected