()
| 196 | } |
| 197 | |
| 198 | flushNow(): void { |
| 199 | if (this.frameId !== null) { |
| 200 | cancelAnimationFrame(this.frameId); |
| 201 | this.frameId = null; |
| 202 | } |
| 203 | if (this.timeoutId !== null) { |
| 204 | clearTimeout(this.timeoutId); |
| 205 | this.timeoutId = null; |
| 206 | } |
| 207 | this.scheduled = false; |
| 208 | this.flush(); |
| 209 | } |
| 210 | |
| 211 | getBufferSize(): number { |
| 212 | return this.buffer.size; |
no test coverage detected