from = to\r
to = swap\r
}\r
- const accountQueue = []\r
for (let i = from; i <= to; i++) {\r
if (this.#accounts[i] == null) {\r
- accountQueue.push(new Promise(resolve => {\r
- this.ckd(i).then(account => this.#accounts[i] = account).then(resolve)\r
- }))\r
+ this.#accounts[i] = await this.ckd(i)\r
}\r
}\r
- if (accountQueue.length > 0) {\r
- await Promise.allSettled(accountQueue)\r
- }\r
return this.#accounts.slice(from, to + 1)\r
}\r
\r