* 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. * * @example * ```ts * await query.cancel() * ```
(options?: CancelOptions)
| 346 | * ``` |
| 347 | */ |
| 348 | cancel(options?: CancelOptions): Promise<void> { |
| 349 | const promise = this.#retryer?.promise |
| 350 | this.#retryer?.cancel(options) |
| 351 | return promise ? promise.then(noop).catch(noop) : Promise.resolve() |
| 352 | } |
| 353 | |
| 354 | /** |
| 355 | * Clears the query's garbage collection timeout and silently cancels any |
no outgoing calls
no test coverage detected