MCPcopy Index your code
hub / github.com/restify/node-restify / finish

Function finish

test/plugins/inflightRequestThrottle.test.js:77–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 var isDone = false;
76 var to;
77 function finish() {
78 if (isDone) {
79 return null;
80 }
81 clearTimeout(to);
82 isDone = true;
83 client.close();
84 server.close();
85 return done();
86 }
87 to = setTimeout(finish, 2000);
88 var err = new Error('foo');
89 err.statusCode = 555;

Callers 1

Calls 1

doneFunction · 0.85

Tested by

no test coverage detected