(delayMs = FLUSH_INTERVAL_MS)
| 759 | } |
| 760 | |
| 761 | const scheduleFlush = (delayMs = FLUSH_INTERVAL_MS) => { |
| 762 | if (flushTimer) return |
| 763 | flushTimer = setTimeout(() => { |
| 764 | flushTimer = null |
| 765 | void flushPending() |
| 766 | }, delayMs) |
| 767 | } |
| 768 | |
| 769 | const reserveIds = async (minCount: number) => { |
| 770 | const reserveCount = Math.max(RESERVE_BATCH, minCount) |
no test coverage detected