Method
setTimeout
(fn: (...args: any[]) => void, timeout: number)
Source from the content-addressed store, hash-verified
| 27 | return this._id++; |
| 28 | } |
| 29 | public setTimeout(fn: (...args: any[]) => void, timeout: number) { |
| 30 | this._flushingInvalidated = this._flushing; |
| 31 | const id = this.getId(); |
| 32 | this.timeouts.set(id, { |
| 33 | start: this.now(), |
| 34 | timeout, |
| 35 | fn |
| 36 | }); |
| 37 | return id; |
| 38 | } |
| 39 | public clearTimeout(id: number) { |
| 40 | this._flushingInvalidated = this._flushing; |
| 41 | this.timeouts.delete(id); |
Callers
nothing calls this directly
Tested by
no test coverage detected