MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / parsePollIntervalMs

Function parsePollIntervalMs

packages/cli/src/commands/cloud/render.ts:313–316  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

311// ---------------------------------------------------------------------------
312
313function parsePollIntervalMs(raw: string | undefined): number {
314 const n = parseNumericFlag(raw, { flag: "--poll-interval", min: 1 });
315 return n === undefined ? DEFAULT_POLL_INTERVAL_MS : Math.round(n * 1000);
316}
317
318function parseMaxWaitMs(raw: string | undefined): number {
319 const n = parseNumericFlag(raw, { flag: "--max-wait", min: 0.0001 });

Callers 1

runFunction · 0.85

Calls 1

parseNumericFlagFunction · 0.85

Tested by

no test coverage detected