MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / finish

Function finish

src/lib/adRewards.js:218–223  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

216 }, REWARDED_RESULT_TIMEOUT_MS);
217
218 const finish = (result) => {
219 if (settled) return;
220 settled = true;
221 clearTimeout(timeoutId);
222 resolve(result);
223 };
224
225 const fail = (error) => {
226 if (settled) return;

Callers 1

waitForRewardedResultFunction · 0.70

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected