(timeout: number)
| 2 | timeout: number; |
| 3 | |
| 4 | constructor(timeout: number) { |
| 5 | super(`Timed out after ${timeout}ms`); |
| 6 | this.name = this.constructor.name; |
| 7 | this.timeout = timeout; |
| 8 | Error.captureStackTrace(this, this.constructor); |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | // https://betterstack.com/community/guides/scaling-nodejs/nodejs-timeouts/ |
nothing calls this directly
no outgoing calls
no test coverage detected