* Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise.
()
| 27 | * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise. |
| 28 | */ |
| 29 | public get aborted(): boolean { |
| 30 | const aborted = abortedFlags.get(this); |
| 31 | if (typeof aborted !== 'boolean') { |
| 32 | throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? 'null' : typeof this}`); |
| 33 | } |
| 34 | return aborted; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | /** |