Extracts cancellation controls from any options bag that extends `AbortQueryOptions`.
(options?: AbortQueryOptions)
| 72 | |
| 73 | /** Extracts cancellation controls from any options bag that extends `AbortQueryOptions`. */ |
| 74 | function pickAbortOptions(options?: AbortQueryOptions): AbortQueryOptions | undefined { |
| 75 | if (!options || (options.signal == null && options.inflightQueryAbortStrategy == null)) { |
| 76 | return undefined; |
| 77 | } |
| 78 | return { |
| 79 | signal: options.signal, |
| 80 | inflightQueryAbortStrategy: options.inflightQueryAbortStrategy, |
| 81 | }; |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Returns a `loggerContext` payload that carries the abort fields alongside any existing |
no outgoing calls
no test coverage detected