Add awaitAll

This commit is contained in:
Andras Schmelczer 2025-11-23 15:22:50 +00:00
parent ef4444afc2
commit d8058d396c
8 changed files with 100 additions and 17 deletions

View file

@ -53,13 +53,11 @@ async function runTest({
}
try {
await Promise.allSettled(clients.map(async (client) => client.init()));
await Promise.all(clients.map(async (client) => client.init()));
for (let i = 0; i < iterations; i++) {
console.info(`Iteration ${i + 1}/${iterations}`);
await Promise.allSettled(
clients.map(async (client) => client.act())
);
await Promise.all(clients.map(async (client) => client.act()));
await sleep(100);
}