* Cancels the query's currently in-flight fetch, if any. * - Returns a promise that resolves once the cancellation has settled. * - If no fetch is in progress, resolves immediately. * @param options - Set `revert` to restore the state from before the fetch started, and `silent` * to supp
(options?: CancelOptions)
| 427 | * ``` |
| 428 | */ |
| 429 | cancel(options?: CancelOptions): Promise<void> { |
| 430 | const promise = this.#retryer?.promise |
| 431 | this.#retryer?.cancel(options) |
| 432 | return promise ? promise.then(noop).catch(noop) : Promise.resolve() |
| 433 | } |
| 434 | |
| 435 | /** |
| 436 | * Clears the query's garbage collection timeout and silently cancels any |
no outgoing calls
no test coverage detected