MCPcopy Index your code
hub / github.com/nodejs/node / fires

Function fires

test/common/inspector-helper.js:539–545  ·  view source on GitHub ↗
(promise, error, timeoutMs)

Source from the content-addressed store, hash-verified

537// if that happens within the `timeoutMs` timespan, or rejects with `error` as
538// a reason otherwise.
539function fires(promise, error, timeoutMs) {
540 const timeout = timeoutPromise(error, timeoutMs);
541 return Promise.race([
542 onResolvedOrRejected(promise, () => timeout.clear()),
543 timeout,
544 ]);
545}
546
547/**
548 * When waiting for inspector events, there might be no handles on the event

Callers 2

waitForNotificationMethod · 0.85
startViaSignalMethod · 0.85

Calls 3

onResolvedOrRejectedFunction · 0.85
timeoutPromiseFunction · 0.70
clearMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…