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

Function isUnrefableTimer

packages/cli/src/commands/render.ts:1458–1467  ·  view source on GitHub ↗
(
  timer: ReturnType<typeof setTimeout>,
)

Source from the content-addressed store, hash-verified

1456};
1457
1458function isUnrefableTimer(
1459 timer: ReturnType<typeof setTimeout>,
1460): timer is ReturnType<typeof setTimeout> & UnrefableTimer {
1461 return (
1462 typeof timer === "object" &&
1463 timer !== null &&
1464 "unref" in timer &&
1465 typeof timer.unref === "function"
1466 );
1467}
1468
1469function scheduleRenderProcessExit(): void {
1470 const timer = setTimeout(() => process.exit(0), 100);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected