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

Function onAbort

packages/cli/src/cloud/poll.ts:98–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 return (ms: number) =>
97 new Promise<void>((resolve, reject) => {
98 const onAbort = (): void => {
99 clearTimeout(timer);
100 reject(signalAbortError(signal!));
101 };
102 const timer = setTimeout(() => {
103 signal?.removeEventListener("abort", onAbort);
104 resolve();

Callers

nothing calls this directly

Calls 1

signalAbortErrorFunction · 0.85

Tested by

no test coverage detected