MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / done

Method done

ruilanCar.js:493–507  ·  view source on GitHub ↗
(t = {})

Source from the content-addressed store, hash-verified

491 return new Promise((s) => setTimeout(s, t));
492 }
493 done(t = {}) {
494 const s = new Date().getTime(),
495 e = (s - this.startTime) / 1e3;
496 this.log(
497 "",
498 `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${e} \u79d2`
499 )
500 this.log()
501 if (this.isNode()) {
502 process.exit(1)
503 }
504 if (this.isQuanX()) {
505 $done(t)
506 }
507 }
508 })(t, s);
509}

Callers 1

ruilanCar.jsFile · 0.45

Calls 4

getTimeMethod · 0.80
logMethod · 0.45
isNodeMethod · 0.45
isQuanXMethod · 0.45

Tested by

no test coverage detected