MCPcopy Index your code
hub / github.com/node-modules/utility / constructor

Method constructor

src/timeout.ts:4–9  ·  view source on GitHub ↗
(timeout: number)

Source from the content-addressed store, hash-verified

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/

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected