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

Method done

lib/internal/test_runner/test.js:454–463  ·  view source on GitHub ↗
(err, result)

Source from the content-addressed store, hash-verified

452 let pollerId;
453 let timeoutId;
454 const done = (err, result) => {
455 clearTimeout(pollerId);
456 clearTimeout(timeoutId);
457
458 if (err === noError) {
459 resolve(result);
460 } else {
461 reject(err);
462 }
463 };
464
465 timeoutId = setTimeout(() => {
466 // eslint-disable-next-line no-restricted-syntax

Callers

nothing calls this directly

Calls 3

clearTimeoutFunction · 0.50
resolveFunction · 0.50
rejectFunction · 0.50

Tested by

no test coverage detected