(timeout?: number)
| 44 | constructor (private fn: () => void, private timeout: number) {} |
| 45 | |
| 46 | set (timeout?: number): void { |
| 47 | this.clear() |
| 48 | this.id = setTimeout(this.fn, timeout ?? this.timeout) |
| 49 | } |
| 50 | |
| 51 | clear (): void { |
| 52 | if (this.id) { |
no test coverage detected