MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / finish

Function finish

tests/binance-ws-api-userdata.test.ts:515–521  ·  view source on GitHub ↗
(err?: Error)

Source from the content-addressed store, hash-verified

513 let finished = false;
514
515 const finish = (err?: Error) => {
516 if (finished) return;
517 finished = true;
518 stopWsApiConnections(true);
519 if (err) return done(err);
520 done();
521 };
522
523 const checkCompletion = () => {
524 if (executionReceived && balanceReceived && subscriptionReady) {

Callers 2

checkCompletionFunction · 0.70

Calls 1

stopWsApiConnectionsFunction · 0.70

Tested by

no test coverage detected