(entry: QueuedCodeCell)
| 252 | } |
| 253 | |
| 254 | function 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 | |
| 266 | function abortError(): Error { |
| 267 | const error = new Error('Code Mode cell aborted'); |
no test coverage detected