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

Function runCodeCell

packages/code-mode/src/index.ts:254–264  ·  view source on GitHub ↗
(entry: QueuedCodeCell)

Source from the content-addressed store, hash-verified

252}
253
254function runCodeCell(entry: QueuedCodeCell): void {
255 if (entry.onAbort) entry.input.signal?.removeEventListener('abort', entry.onAbort);
256 void executeCodeCellImpl(entry.input)
257 .then(entry.resolve, entry.reject)
258 .finally(() => {
259 const next = queuedCodeCell;
260 queuedCodeCell = undefined;
261 if (next) runCodeCell(next);
262 else codeCellActive = false;
263 });
264}
265
266function abortError(): Error {
267 const error = new Error('Code Mode cell aborted');

Callers 1

executeCodeCellFunction · 0.85

Calls 2

executeCodeCellImplFunction · 0.90
removeEventListenerMethod · 0.65

Tested by

no test coverage detected