* Clears the underlying timeout. This method is idempotent
()
| 95 | * Clears the underlying timeout. This method is idempotent |
| 96 | */ |
| 97 | clear(): void { |
| 98 | clearTimeout(this.id); |
| 99 | this.id = undefined; |
| 100 | this.timedOut = false; |
| 101 | this.cleared = true; |
| 102 | } |
| 103 | |
| 104 | throwIfExpired(): void { |
| 105 | if (this.timedOut) { |