MCPcopy Index your code
hub / github.com/callstack/agent-device / fromTimeoutMs

Method fromTimeoutMs

src/utils/retry.ts:59–61  ·  view source on GitHub ↗
(timeoutMs: number, nowMs = Date.now())

Source from the content-addressed store, hash-verified

57 }
58
59 static fromTimeoutMs(timeoutMs: number, nowMs = Date.now()): Deadline {
60 return new Deadline(nowMs, timeoutMs);
61 }
62
63 remainingMs(nowMs = Date.now()): number {
64 return Math.max(0, this.expiresAtMs - nowMs);

Calls

no outgoing calls

Tested by

no test coverage detected