* 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)
| 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. |
no outgoing calls
no test coverage detected