MCPcopy Create free account
hub / github.com/firebase/firebase-tools / run

Function run

src/utils.ts:429–439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

427): Promise<T> {
428 return new Promise<T>((resolve, promiseReject) => {
429 const run = async () => {
430 try {
431 const res = await action();
432 if (check(res)) {
433 return resolve(res);
434 }
435 setTimeout(run, interval);
436 } catch (err: unknown) {
437 return promiseReject(err);
438 }
439 };
440 run();
441 });
442}

Callers 3

promiseWhileFunction · 0.70
pLimitFunction · 0.70
command.spec.tsFile · 0.70

Calls 5

checkFunction · 0.85
resolveFunction · 0.85
fnFunction · 0.85
rejectFunction · 0.70
nextFunction · 0.70

Tested by

no test coverage detected