()
| 76 | } |
| 77 | |
| 78 | function writeAll(): void { |
| 79 | begin() |
| 80 | for (const post of filtered) { |
| 81 | write({ type: `insert`, value: post }) |
| 82 | } |
| 83 | commit() |
| 84 | } |
| 85 | |
| 86 | if (asyncDelay !== undefined) { |
| 87 | return new Promise<void>((resolve) => { |
no outgoing calls
no test coverage detected