Introduce IRenderDebouncer interface, unifying RenderDebouncer and TimeBasedDebouncer types

This commit is contained in:
Samuel Sampson
2021-08-17 20:50:47 +00:00
parent f1eed44e14
commit f1849cafaf
5 changed files with 12 additions and 8 deletions
+2 -2
View File
@@ -3,12 +3,12 @@
* @license MIT
*/
import { IDisposable } from 'common/Types';
import { IRenderDebouncer } from 'browser/Types';
/**
* Debounces calls to render terminal rows using animation frames.
*/
export class RenderDebouncer implements IDisposable {
export class RenderDebouncer implements IRenderDebouncer {
private _rowStart: number | undefined;
private _rowEnd: number | undefined;
private _rowCount: number | undefined;