* Force-end the current query regardless of generation. * Used by onCancel where any running query should be terminated. * Increments generation so stale finally blocks from the cancelled * query's promise rejection will see a mismatch and skip cleanup.
()
| 86 | * query's promise rejection will see a mismatch and skip cleanup. |
| 87 | */ |
| 88 | forceEnd(): void { |
| 89 | if (this._status === 'idle') return |
| 90 | this._status = 'idle' |
| 91 | ++this._generation |
| 92 | this._notify() |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Is the guard active (dispatching or running)? |