MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / done

Method done

tools/env.js:166–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 return new Promise(r => setTimeout(r, ms));
165 }
166 async done() {
167 await this.sendMsg();
168 const s = new Date().getTime(),
169 e = (s - this.startTime) / 1e3;
170 this.log(
171 `\ud83d\udd14${this.name},\u7ed3\u675f!\ud83d\udd5b ${e}\u79d2`
172 );
173 if (this.isNode()) {
174 process.exit(0);
175 }
176 }
177 parseCookie(ck) {
178 return typeof ck != "string" || !ck ? {} : Object.fromEntries(
179 ck.split(/;\s*/).filter(v => v.includes("=")).map(v => [v.slice(0, v.indexOf("=")), v.slice(v.indexOf("=") + 1)])

Callers

nothing calls this directly

Calls 4

getTimeMethod · 0.80
sendMsgMethod · 0.45
logMethod · 0.45
isNodeMethod · 0.45

Tested by

no test coverage detected