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

Function run

packages/studio/src/utils/domEditSaveQueue.ts:55–64  ·  view source on GitHub ↗
(save: () => Promise<void>)

Source from the content-addressed store, hash-verified

53 };
54
55 const run = async (save: () => Promise<void>) => {
56 try {
57 await save();
58 if (!breakerOpen) consecutiveFailures = 0;
59 } catch (error) {
60 consecutiveFailures += 1;
61 if (consecutiveFailures >= failureThreshold) open(error);
62 throw error;
63 }
64 };
65
66 return {
67 enqueue(save) {

Callers 1

enqueueFunction · 0.70

Calls 2

saveFunction · 0.85
openFunction · 0.85

Tested by

no test coverage detected