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

Method remainingMs

src/utils/retry.ts:63–65  ·  view source on GitHub ↗
(nowMs = Date.now())

Source from the content-addressed store, hash-verified

61 }
62
63 remainingMs(nowMs = Date.now()): number {
64 return Math.max(0, this.expiresAtMs - nowMs);
65 }
66
67 elapsedMs(nowMs = Date.now()): number {
68 return Math.max(0, nowMs - this.startedAtMs);

Callers 15

isExpiredMethod · 0.95
retryWithPolicyFunction · 0.80
waitForAndroidBootFunction · 0.80
resolveDeadlineTimeoutMsFunction · 0.80
ensureBootedSimulatorFunction · 0.80
waitForRunnerFunction · 0.80
tryRefreshedDeviceTunnelFunction · 0.80
sendRunnerCommandOnceFunction · 0.80
tryRunnerEndpointsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected