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

Method dec

test/common/countdown.js:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 }
15
16 dec() {
17 assert(this[kLimit] > 0, 'Countdown expired');
18 if (--this[kLimit] === 0)
19 this[kCallback]();
20 return this[kLimit];
21 }
22
23 get remaining() {
24 return this[kLimit];

Callers 15

testServerFunction · 0.95
childFunction · 0.95
makeRequestsFunction · 0.95
childFunction · 0.95
pingFunction · 0.80
testFunction · 0.80
onendFunction · 0.80

Calls 1

assertFunction · 0.50

Tested by 1

testFunction · 0.64