()
| 44 | } |
| 45 | } |
| 46 | const flush = (): void => { |
| 47 | const originalQueue = queue |
| 48 | queue = [] |
| 49 | if (originalQueue.length) { |
| 50 | scheduleFn(() => { |
| 51 | batchNotifyFn(() => { |
| 52 | originalQueue.forEach((callback) => { |
| 53 | notifyFn(callback) |
| 54 | }) |
| 55 | }) |
| 56 | }) |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | return { |
| 61 | /** |
no test coverage detected