Comment

Comment by petepete

Instead of using Promise.all, wouldn't an approach like this work?

    const a = taskA();
    const b = taskB();
    const c = taskC();

    const result = [await a, await b, await c];
parent petepete 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton