()
| 116 | } |
| 117 | |
| 118 | public async flush() { |
| 119 | if (this.flushTimer) { |
| 120 | clearTimeout(this.flushTimer); |
| 121 | this.flushTimer = null; |
| 122 | } |
| 123 | await this.flushLocalBuffer(); |
| 124 | } |
| 125 | |
| 126 | private async flushLocalBuffer() { |
| 127 | if (this.isFlushing || this.pendingEvents.length === 0) { |
no test coverage detected