()
| 101 | } |
| 102 | |
| 103 | async flush(): Promise<void> { |
| 104 | this.flushPendingPersistence() |
| 105 | await this.persistenceTail |
| 106 | if (this.lastPersistenceError) { |
| 107 | const error = this.lastPersistenceError |
| 108 | this.lastPersistenceError = null |
| 109 | throw error |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | async close(): Promise<void> { |
| 114 | this.stopKeepalive() |
no test coverage detected