MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / waitFor

Function waitFor

packages/deno/test/deno-http.test.ts:47–53  ·  view source on GitHub ↗
(predicate)

Source from the content-addressed store, hash-verified

45 return null;
46 },
47 waitFor(predicate) {
48 const already = transactions.find(predicate);
49 if (already) return Promise.resolve(already);
50 return new Promise<TransactionEvent>(resolve => {
51 waiters.push({ predicate, resolve });
52 });
53 },
54 };
55}
56

Calls 2

pushMethod · 0.80
resolveMethod · 0.65

Tested by

no test coverage detected