Comment by ajifurai
3 months ago
Actually, TypeScript's `Promise.all` can handle different types too.
const [a, b] = await Promise.all([fetchA(), fetchB()]); // => a: A, b: B
3 months ago
Actually, TypeScript's `Promise.all` can handle different types too.
const [a, b] = await Promise.all([fetchA(), fetchB()]); // => a: A, b: B
I am talking about C# / F# context where the lists must have homogeneous types.
That TypeScript supports this is yet more complexity introduced to cover usages of an API not designed around types.