()
| 27 | } |
| 28 | |
| 29 | async invalidateAndAwait() { |
| 30 | if (this._stopped) { |
| 31 | return; |
| 32 | } |
| 33 | await new Promise<void>(resolve => { |
| 34 | this._pendings.push(resolve); |
| 35 | this.invalidate(); |
| 36 | }); |
| 37 | } |
| 38 | |
| 39 | stop() { |
| 40 | if (this._stopped) { |
no test coverage detected