()
| 203 | } |
| 204 | |
| 205 | resume(): void { |
| 206 | if (this.remaining <= 0) { |
| 207 | return; |
| 208 | } |
| 209 | |
| 210 | this.startTime = Date.now(); |
| 211 | this.timerId = setTimeout(() => { |
| 212 | this.timerId = null; |
| 213 | this.remaining = 0; |
| 214 | this.callback(); |
| 215 | }, this.remaining); |
| 216 | } |
| 217 | } |