MCPcopy
hub / github.com/lit/lit / abort

Method abort

packages/task/src/task.ts:401–405  ·  view source on GitHub ↗

* Aborts the currently pending task run by aborting the AbortSignal * passed to the task function. * * Aborting a task does nothing if the task is not running: ie, in the * complete, error, or initial states. * * Aborting a task does not automatically cancel the task function. The

(reason?: unknown)

Source from the content-addressed store, hash-verified

399 * `AbortController.abort()`.
400 */
401 abort(reason?: unknown) {
402 if (this._status === TaskStatus.PENDING) {
403 this._abortController?.abort(reason);
404 }
405 }
406
407 /**
408 * The result of the previous task run, if it resolved.

Callers 3

task_test.tsFile · 0.80
runMethod · 0.80
task_test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected