(items: BatchItem[])
| 119 | // A server without batching answers the array body with a plain object, so the |
| 120 | // items are retried one by one and the session stops sending arrays. |
| 121 | const fallbackToSingleRequests = async (items: BatchItem[]): Promise<void> => { |
| 122 | setGqlBatchingEnabled(false); |
| 123 | |
| 124 | await Promise.all(items.map(requestSingle)); |
| 125 | }; |
| 126 | |
| 127 | const flush = async (): Promise<void> => { |
| 128 | flushHandle = undefined; |
no test coverage detected