MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / callbackOnce

Function callbackOnce

test/test-helper.js:1440–1446  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

1438 let timeout;
1439
1440 const callbackOnce = (err) => {
1441 if (timeout) {
1442 clearTimeout(timeout);
1443 }
1444 cb(err);
1445 cb = utils.noop;
1446 };
1447
1448 // If process hasn't completed in 10 seconds.
1449 timeout = setTimeout(function() {

Callers 1

test-helper.jsFile · 0.70

Calls 1

cbFunction · 0.85

Tested by

no test coverage detected