---
title: "Comment by Axel Rauschmayer on \"Asynchronous Programming in TypeScript\" | Hashnode"
description: "Another option for parallelism: const getAllUsersAndProducts1 = async () =&gt; { const [users, products] = await Promise .all([ fetchAllUsers(), fetchAllProduct"
url: "https://hashnode.com/posts/asynchronous-programming-in-typescript/6281f7f9bc9305ec3936677a/comment/628203680094f2f13f517e92"
---

[Discussion](https://hashnode.com/posts/asynchronous-programming-in-typescript/6281f7f9bc9305ec3936677a)

Comment [Asynchronous Programming in TypeScript](https://hashnode.com/posts/asynchronous-programming-in-typescript/6281f7f9bc9305ec3936677a)

[Axel Rauschmayer](https://hashnode.com/@rauschma)

[May 16, 2022](https://hashnode.com/posts/asynchronous-programming-in-typescript/6281f7f9bc9305ec3936677a/comment/628203680094f2f13f517e92)

Another option for parallelism:

```
const getAllUsersAndProducts1 = async () => {
  const [users, products] = await Promise.all([
    fetchAllUsers(),
    fetchAllProducts(),
  ]);
  return { users, products };
};
```
