---
title: "Discussion on \"Asynchronous Programming in TypeScript\" | Hashnode"
description: "Discussion on \"Asynchronous Programming in TypeScript\". async/await vs promises"
url: "https://hashnode.com/posts/asynchronous-programming-in-typescript/6281f7f9bc9305ec3936677a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Asynchronous Programming in TypeScript](https://blog.rupertmckay.com/asynchronous-programming-in-typescript?utm_source=hashnode&utm_medium=feed)

async/await vs promises

May 16, 2022 · 6 min read · blog.rupertmckay.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#promises](https://hashnode.com/tag/promises)
-   [#asynchronous](https://hashnode.com/tag/asynchronous)

## Written by

[Rupert McKay](https://hashnode.com/@fildon)

@fildon · Delft, The Netherlands

  
[View profile](https://hashnode.com/@fildon)

Staff Software Engineer at Lokalise

## Responses 1

Markdown supported · ⌘↵ to post

[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 };
};
```
